S32K144 UART

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K144 UART

4,693 次查看
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 回复数

3,495 次查看
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 

3,495 次查看
pritampatil
Contributor III

Thanks a lot... :smileyhappy:

0 项奖励
回复

3,495 次查看
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 项奖励
回复

3,495 次查看
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 项奖励
回复