- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm learning examples through Uart communication. Among the built-in examples, I studied to print "HELLO world" through an example called UART_VCOM. Currently, I tried to create an example of outputting numeric variables through applied study, but it didn't work out. Can I get help?
Solved! Go to Solution.
- Labels:
-
AURIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In the UART_VCOM example, you can use below configurations in the function send_UART_message()
a) uint8 txData[] = "012"; /* Message to send */
Ifx_SizeT count = 3;
b) uint8 txData[] = {48,49,50}; /* Message to send */
Ifx_SizeT count = 3;
Both these will print 012 in the COM terminal. The values displayed are based on the ASCII values.
The ASCII values corresponding to the numeric variable need to be used to display those numbers.
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In the UART_VCOM example, you can use below configurations in the function send_UART_message()
a) uint8 txData[] = "012"; /* Message to send */
Ifx_SizeT count = 3;
b) uint8 txData[] = {48,49,50}; /* Message to send */
Ifx_SizeT count = 3;
Both these will print 012 in the COM terminal. The values displayed are based on the ASCII values.
The ASCII values corresponding to the numeric variable need to be used to display those numbers.
Best Regards.