LPC54616 LIN Break Generation

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

LPC54616 LIN Break Generation

跳至解决方案
1,613 次查看
Cherrin
Contributor I

The break signal generated by USART0 in LIN provided in the LPC54616 user manual seems to be unavailable. Would you like to know how to generate Break signal by USART0 in LIN mode and how to configure the initialization of USART

0 项奖励
回复
1 解答
1,554 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I recommend review the SDK example for the LPC54628, there is an example about the interrupt.

I reviewed the documentation and on chapter 25.7.9 Break generation and detection mention the next.

Both the beginning and end of a received break are noted by the DELTARXBRK status flag, which can be used as an interrupt.

And on chapter 25.7.10 LIN bus metioned the next.

When a break is requested by setting the TXBRKEN bit in the CTL register, then sending a dummy character, a 13 bit time break is sent.

Pavel_Hernandez_0-1726194090253.png

Best regards,
Pavel

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,591 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, did you mean the start of frame or stop? could you elaborate further?

Best regards,
Pavel

0 项奖励
回复
1,588 次查看
Cherrin
Contributor I

What I mean is that I currently use usart0 to perform the lin bus function, but I encounter difficulties when sending LIN packets. LIN packets start with a break signal (synchronization interval (Break Field)). How can this signal be successfully sent out? And how can USART0 interrupt be configured?

0 项奖励
回复
1,555 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I recommend review the SDK example for the LPC54628, there is an example about the interrupt.

I reviewed the documentation and on chapter 25.7.9 Break generation and detection mention the next.

Both the beginning and end of a received break are noted by the DELTARXBRK status flag, which can be used as an interrupt.

And on chapter 25.7.10 LIN bus metioned the next.

When a break is requested by setting the TXBRKEN bit in the CTL register, then sending a dummy character, a 13 bit time break is sent.

Pavel_Hernandez_0-1726194090253.png

Best regards,
Pavel

0 项奖励
回复
1,528 次查看
Cherrin
Contributor I

这样确实可以产生break信号 但是要注意USART的配置,有时候配置了LIN MODE ENABLE,但是usartinit完之后会设置为disable,在这里重新使能一下就可以了

0 项奖励
回复
1,544 次查看
Cherrin
Contributor I

_0-1726204085541.png_1-1726204105296.png_2-1726204115353.png

The notes and what is now written are written in the manner provided by the manual and do not seem to be able to successfully send signals and messages

0 项奖励
回复