Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,089 Views

Sending UART in Hex format

Hi..Im currently using device which requires data to be send from C1000 to the device in HEX format. Some of my codes are:

uint8_t data[]={0x01, 0x04, 0x00, 0x00, 0x00, 0x02, 0x71, 0xCB};

qm_uart_write_buffer(QM_UART_0, data, sizeof(data));

However, i realized that data is sent thru UART is in ASCII instead of HEX. How I want to send it in HEX format?

0 Kudos
2 Replies
Highlighted
Community Manager
22 Views

Hello,

Thank you for reaching out to /community/tech/microcontrollers Intel® Quark™ Microcontrollers forum.

We have received your request and shortly we will be contacting you with additional information.

Regards

 

Intel Customer Support Engineer

 

Under contract to Intel
0 Kudos
Highlighted
Beginner
22 Views

Hi.. I managed to resolve the issue. The problem is actually not hex > ASCII conversion. I actually need to set the parity bit to Even (as required by the hardware), QM_UART_LC_8E1. thanks.

0 Kudos