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
Solved! Go to Solution.
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.
Best regards,
Pavel
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
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?
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.
Best regards,
Pavel
这样确实可以产生break信号 但是要注意USART的配置,有时候配置了LIN MODE ENABLE,但是usartinit完之后会设置为disable,在这里重新使能一下就可以了
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