how to add new line character "\n" in UART Block
03-24-2021
05:17 AM
5,273 次查看
3 回复数
03-25-2021
05:58 AM
5,208 次查看
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,235 次查看


NXP Employee
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
回复
03-25-2021
02:32 AM
5,241 次查看


NXP Employee
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
回复
