Hello everyone..
I read this post today. And added MOVF PORTA, W - MOVF PORTB, W. Now it's working as it should be.
Code:RABC : @ MOVF PORTA, W @ MOVF PORTB, W COUNTER = COUNTER + 1 @ INT_RETURN
Hello everyone..
I read this post today. And added MOVF PORTA, W - MOVF PORTB, W. Now it's working as it should be.
Code:RABC : @ MOVF PORTA, W @ MOVF PORTB, W COUNTER = COUNTER + 1 @ INT_RETURN
Hello,
i have a working code which uses
CMP_INT and TMR1_INT.
I want when TMR1_INT event triggered ,
to change the period (or Frequency as entered) and reload the TMR1 with a new value.
Is this possible to put mutiple instances of e.g.
@Freq = 416 ; Frequency of Interrupts in Hz 416Hz
??
Thank you.
"Freq " would be a label and cannot be redefinedIs this possible to put mutiple instances of e.g. @Freq = 416
you can however
@Freq1 = 416
@Freq2 = 410
@Freq3 = 466
if you need to change the tmr1 interrupt rate the tmr1 reload value needs to be a var
Bookmarks