OK, I tried that Dave. With bad results, here's my code:
Pic2 code
<code>
RXIn:
if RCIF then
@ INT_DISABLE TMR0_INT
for index = 0 to 3
hserin [serialdata]
dataA(index) = serialdata
next index
usbservice
gosub dousbout
@ INT_ENABLE TMR0_INT
endif
@ INT_RETURN
</code>
pic1 code:
<code>
hserout [var1(0), var1(1), var1(2), var1(3)] 'it only has 4 bytes now
</code>
I tried:
<code>
hserout [STR var1\4]
</code>
but it gave me an error (ERROR: Macro HSEROUTSTRN?W not found in macro file.)
Bookmarks