S32K144 UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 UART

3,208 Views
pritampatil
Contributor III

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.

Capture.PNG

Is this data transmitted or echoed?

Please help me to understand this. 

4 Replies

2,010 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

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 

2,010 Views
pritampatil
Contributor III

Thanks a lot... :smileyhappy:

0 Kudos

2,010 Views
yuganshbansal
Contributor I

Hi Pritam,

Can you please share your UART example project with me. I am also new to S32K design Studio.

Thank you in advance.

0 Kudos

2,010 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

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

0 Kudos