I assume that you want to write your ISR in PBP -
So, use Darrel's list (part of which is shown below)
to pick the right interrupt and syntax.
' TX_INT -- USART Transmit
' TX1_INT -- USART1 Transmit
' TX2_INT -- USART2 Transmit
' RX_INT -- USART Receive
' RX1_INT -- USART1 Receive
' RX2_INT -- USART2 Receive
------------------------------------------------
Pick one, then include Instant Interrupts -
INCLUDE "DT_INTS-18.bas" ; Base Interrupt System
INCLUDE "ReEnterPBP-18.bas" ; Include if using PBP interrupts
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler RX1_INT, _GetChar, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
Goto OverInt
+++++++++++++++++++++++++++++++++++++++++
ISR goes here.....
GetChar:
HSERIN ...
@ INT_RETURN
+++++++++++++++++++++++++++++++++++++++++
OverInt:
@ INT_ENABLE RX1_INT - enable the interrupt
Main Program goes here...
Bookmarks