SPBRG = 64 'Set to 4800 bps
-------------double check this...
-------------Are your A/D pins set to analog or digital?
BAUD CON 16390
-------------double check this too...
myroutine:.................
GOSUB SENDATA
...............................
resume
enable
-----------Not good programming practice to jump out of an interrupt routine and hope it comes back into it every time...might not....
if counter=5000 THEN 'just to keep the pic busy to make sure the
toggle portd.0 'Toggle LED connected to this pin.
counter=0 ' interrupts are working.
else
counter=counter+1
endif
--------------Is the LED toggling?
Bookmarks