No problem.
Just use DEBUG, SERIN or SERIN2 inside the (PBP type) INT_INT handler.
You don't have to "change the operation of RB0" because once it's in the handler it can no longer cause another interrupt.
The interrupt trigger is very fast (1 instruction cycle minimum) at 4mhz that's 1 us. But it will take about 50 instruction cycles to get to a PBP type handler, more if using PBPL.
TX side:
Code:
HIGH OutPin
@ nop ; add nop's if sending pic is 20mhz
@ nop
@ nop
@ nop
LOW OutPin
PAUSEUS 60 ; 60 if receiving PIC is 4mhz, 15 if 20mhz
SEROUT2 ...
Bookmarks