how to add new line character "\n" in UART Block
‎03-24-2021
05:17 AM
5,275 Views
viet
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 Replies
‎03-25-2021
05:58 AM
5,210 Views
viet
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @mariuslucianand @adriantudor
great thanks for your help. Both of solutions are work for me.
thanks for your support.
‎03-25-2021
03:03 AM
5,237 Views


NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @viet
Another solution is to use a "matrix concatenation" block after the string to ASCII block and add decimal values for new-line and carriage return, as in this picture.
Best regards,
Adrian
Reply
‎03-25-2021
02:32 AM
5,243 Views


NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @viet ,
One way of sending the newline character is to provide the data to the LPUART send as uint8 (char) and to add in the end the number 10 (which is newline) If you also want to send carriage return is to add the number 13 also. See the below example. This is not the most elegant way, but it works.
Hope this helps,
Marius
Reply
