9 years, 7 months ago.

Writing binary data out UART

I am trying to send a simple count out a UART. The data needs to be binary. Not converted to ASCII.

I am trying to send 16 bit and 32 bit unsigned int's out through the UART. I understand that they will be broken up into 8 bit chumks. I have tried type casting and using "UNION". In both cases, the printf statement will not send 0x00.

Any help would be appriciated

1 Answer

9 years, 7 months ago.

Just use putc insted

Accepted Answer