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_ISR   

If 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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -