I am new to s32k14x family & also new to UART. I am going through the example projects. I tried executing UART program in S32DS with tera term.
There i got the following window.
I entered a, s and d one after the other, i got following data on screen.
Is this data transmitted or echoed?
Please help me to understand this.
Hi pritampatil,
Actually both, in the LPUART1_recieve_and_echo_char() function you could see following:
Your entered character is saved to the send variable and on the terminal is nothing to see.
1. char send = LPUART1_receive_char(); /* Receive Char */
After that, using the below function is transmitted the character back to the terminal and you can see the character like on your picture above.
2. LPUART1_transmit_char(send); /* Transmit same char back to the sender */
So, this process it can be named echo => The received character is just transmitted (sent back) to the sender.
You could look at the below figures in the reference manual, the diagrams show you how LPUART works.
Figure 51-1. LPUART transmitter block diagram and Figure 51-2. LPUART receiver block diagram.
Also, you can debug the code for better understanding how it works.
I hope it helps you.
If it is not clear, let me know.
Best regards,
Diana
Thanks a lot... :smileyhappy:
Hi Pritam,
Can you please share your UART example project with me. I am also new to S32K design Studio.
Thank you in advance.
Hi Yugansh,
This example project for the UART you can find in the S32 Design Studio.
File -> New -> S32DS Project from Example -> S32K144 -> LPUART
I hope it helps you.
Best regards,
Diana