Hello Darrel !
I´m using your Instat interrupts to work with TIMER1, TIMER2 and CCP1 with a 16F877 @ 4Mhz, like this :
ASM
;T0IF = TMR0IF
;T0IE = TMR0IE
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler CCP1_INT, _Capture, PBP, yes
INT_Handler TMR1_INT, _Timer1, PBP, yes
INT_Handler TMR2_INT, _tick, PBP, yes
endm
INT_CREATE ; Cria a interrupção
ENDASM
Everything is working very, very well.
I´m doing a On-board computer for my small Opel Corsa, and this interrupts are just great !
Me and Sirvo (remember him ?) are doing almost the same on-board computer.
But now, I would like to implement 4 Buttons to my application (Start, Stop, Pause, Funcition Keys).
I´m trying to do that with the button statement without success / good results.
I read your sample (hello word for instant interrupts) but the INT_INT read just the RB0/INT right ?
Is that possible to use the Instant Interrupts to create/read, let´s say, 4 different buttons on PORTC ?
Tahank You very much !
bye
Sérgio Pinheiro
Bookmarks