HI Guys,

I'm trying to send out a hex serial output using an array. My hex is 4 digits (ex. 0000). Here is part of my program:

TRISA.2 = 1

A2 VAR TRISA.2
COM_CODE VAR Byte[16]
I VAR Byte

COM_CODE[0]=$0000

Loop:
IF A2==1 THEN
I=0
ENDIF
GOSUB Data_file
GOTO Loop

Data_file:
SEROUT2 PORTB.2,19697,[COM_CODE[I]]
Return

I'm using a 16f88 pic and I think i can only run 8 binary lines but i need to run 16. is there a line that i can use to make it run 16? Do I need to change the com_code var line also? I really need some help

Thanks