This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I send an array of hex to RS232

I have an array

unsigned char ABC[5]={0x04,0x01,0x05,0x10,0x00};

I want to transmit to RS232 use SBUF,

for(i=0;i<=4;i++)
SBUF=ABC[i];

but it's not work.

Can anyone teach me how to do it?
thanks so much!!!

0