LPUART1 RX signal of S32K148 is distorted.

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

LPUART1 RX signal of S32K148 is distorted.

跳至解决方案
1,778 次查看
toipaz
Contributor III


I'm using S32K148-EVB (nxp.s32k148evb-q176).
I am testing the example to use uart, but the rx signal from lpuart1 is strange.

* Connection:
 PC -- USB to serial ------------ RS-232 Converter ---------- EVB

- Pin LPUART1 RX, PTC6

- Pin LPUART1 TX, PTC7

 

Test code: lpuart_echo_s32k148 example of S32K1xx SDK RTM v4.0.3
There are no modifications to the example code.

1) EVB --> Transfer to PC: OK (attached)

result screen in PC 

2) PC --> EVB transfer: nothing

 

When checking the signal using scope, If it is connected to the EVB's LPUART RX line, the RX signal will be distorted.

Scope image:
* RS-232 Converter output signal (red) with EVB’s LPUART RX Line connected:

Signal when RX Line is connected. 


* RS-232 Converter output signal (red) without connection:

Signal without connection of EVB RX line 


I still used it without any modifications to the example code.
Is there a solution?

0 项奖励
回复
1 解答
1,719 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

The PTC6 is connect to OpenSDA(K20) by default, maybe it was caused by it.
Have you try to power the S32K148EVB by external 12v(J9) instead of USB power(J24)? Or change the hardware by remove R627.

PTC6 S32K148EVB.png

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,738 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Maybe I didn't understand your question.
But shouldn't a USB to TTL Converter be used to connect the PC and EVB?
If you use a USB to RS232 Converter, the RS232 signal voltage cannot be directly connected to the 5v or 3.3v signal on the EVB board.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
1,728 次查看
toipaz
Contributor III

Thanks for your reply.

I wrote it wrong in my question. Let me correct as follows.:
The connection is
     PC [USB]--- USB to RS-232 converter -------RS 232 to TTL --- EVB
The power source for RS-232 to TTL uses 5V DC from EVB.

The RS232 to TTL converter is equivalent to the Arduino RS232 shield.

Best regards.

0 项奖励
回复
1,720 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

The PTC6 is connect to OpenSDA(K20) by default, maybe it was caused by it.
Have you try to power the S32K148EVB by external 12v(J9) instead of USB power(J24)? Or change the hardware by remove R627.

PTC6 S32K148EVB.png

0 项奖励
回复
1,705 次查看
toipaz
Contributor III

Thank you for answer.

It is currently connected via external 12V DC, and USB is connected at the same time.

As mentioned, when I tried to communicate after removing the USB,
I have confirmed that communication is working normally.

Thanks Robin.

Best Regards,

Cheolhyeon Cho

0 项奖励
回复
1,752 次查看
toipaz
Contributor III

Using the same example code, I changed it to test as follows:
1. lpuart1 with PTA18, PTA19 pins
2. lpuart2 with PTA8, PTA9 pins.
In both cases, 2-way communication works well.

Should I consider the PTC6 pin of my EVB board to be the problem?

0 项奖励
回复