I use in my project PIC18F87K22. I hve problem with communication.

DEFINE HSER2_BAUD 9600
.
.
.
HSEROUT2 ["abcdefghijklm"]

is not working, but

DEFINE HSER2_BAUD 9600
.
.
.
arraywrite a,[ CR, LF, "abcdefghijklm", CR, LF, 0]
gosub textout
.
.
.
.
textout:
K = 0
text1:
tmp = a[K]
if tmp = 0 then return
TXREG2 = tmp
while PIR3.4 = 0
wend
K = K + 1
GoTo text1

working properly! Wy?


Tnx, Joe