AlexNadal
Junior Member level 3
When I work with the timer1 and timer 2 in picBasic, how can I distinguish which has interrupt the program?! wich flags?! And how I can do differents things depends on the interruption?!
thanks
thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
btfsc PIR1, TMR1IF
goto TMR1_interrupt
btfsc PIR1, TMR2IF
goto TMR2_interrupt
btf..... and so on
TMR1_interrupt: ;code for TMR1
TMR2_interrupt: ;code for TMR2