I want to write:
IF PIR1.TMR1IF = 1 THEN ; Remember that TMR1IF bit is in PIR1 SFR
T1CON = 0 ; Stop timer
PIR1.TMR1IF = 0
GOSUB DoSomethingUseful
ENDIF
Type: Posts; User: khaynes; Keyword(s):
I want to write:
IF PIR1.TMR1IF = 1 THEN ; Remember that TMR1IF bit is in PIR1 SFR
T1CON = 0 ; Stop timer
PIR1.TMR1IF = 0
GOSUB DoSomethingUseful
ENDIF
Hello,
I think the following code is not doing what you expect.
Timerset = $292B ' 22 ms with prescale of 1:2 dec 10541
The above line looks like it is setting the value of a variable.
...
Hi,
I think you are using the same frequency, but more than that you have to use exactly the same timer.
'DEFINE HPWM1_TIMER 1
'DEFINE HPWM2_TIMER 2
I think that you should use:
'DEFINE...
Hi,
The two PWM channels on the 16F877 share the same timer, which is timer 2. The two PWM channels must have the same period. They can have different duty cycles. You can check the data sheet...
If you have the watchdog timer enabled, the processor will reset and go back to main.
Hello,
I looked at your code and had a couple of questions you might look into. They are marked with <--
Hope this is helpfull.
Keith
if c <= 7 then begin
if password [0] <> "1" then...
Hello,
My code has the following line:
TMR1IF_BIT VAR PIR1.0
I use it to check for Timer 1 overflow. I am compiling for the 16F877 PIC.
For this PIC, TMR1IF is PIR1.0, If I move this code...