com_code is a byte variable, so it can only store one byte in each array segment:
like this for example:
COM_CODE[0]=$00
COM_CODE[1]=$00
COM_CODE[2]=$FF
COM_CODE[3]=$8E
COM_CODE[4]=$1A
and so on...
to send the whole array via serial use this line
SEROUT2 PORTB.2,19697,[STR COM_CODE\16]
(the \16 signifies that you want to send 16 bytes)
Bookmarks