So instead of this...
SEROUT2 PORTB.2,19697,[COM_CODE[I]]
...you want to send four digits of HEX...
SEROUT2 PORTB.2,19697,[HEX4 COM_CODE[I]]
So instead of this...
SEROUT2 PORTB.2,19697,[COM_CODE[I]]
...you want to send four digits of HEX...
SEROUT2 PORTB.2,19697,[HEX4 COM_CODE[I]]
Hi Melanie.
Since he has an array, he needs a way to convert it before sending each array element.
The solution of in-situ conversion I think will not help him.
Also as kamikaze47 stated his array should be word instead of byte.
So the example of yours code I gave is really for byte and needs some modification.
Ioannis
Bookmarks