PIC Assembly: ISR for Timer1 -
To do ISR on timer 0, we use the 0x04 address, or in the code
< Code> ORG 0x04 GOTO tmr0_ISRIf I am using timer1 or ISR, what address should I use which require different approach? On PIC16F877A, all interrupt triggers stored the same ISR on
0x04
/ code>.
Therefore, you need something on the following:
ORG 0x04 GOTO ISR
Somewhere else:
ISR: BTFSC waiton, TMR 0F Goto TMR 0_ISR BTFSC PIR1, TMR 1 IF GOTO TMR 1_ISR
My syntax can not be correct, it's been a while Is when i pic 16 Assembly
Comments
Post a Comment