Hi,
If you have a way of testing the uarts you can try the below, no guarantees
I think if you define the the interupt and related registers, DT's macro will do the rest
for you? Edit DT_INTS-14.bas include file
Existing uart define, from DT_INTS-14.bas version 1.10
Code:
#define TX_INT PIR1,TXIF, PIE1,TXIE ;-- USART Transmit
#define RX_INT PIR1,RCIF, PIE1,RCIE ;-- USART Receive
Try adding this right below the above (info from page 89 pic16f1527 data sheet)
Code:
#define TX1_INT PIR1,TX1IF, PIE1,TX1IE ;-- USART1 Transmit
#define RX1_INT PIR1,RC1IF, PIE1,RC1IE ;-- USART1 Receive
#define TX2_INT PIR4,TX2IF, PIE4,TX2IE ;-- USART2 Transmit
#define RX2_INT PIR4,RC2IF, PIE4,RC2IE ;-- USART2 Receive
Bookmarks