- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(1)The first question is that when the UART component is configured in standard mode, the break is set to 11 bytes in length. The first interrupt is detected after power-on, the break segment flag is set to 1, but the received data is the synchronization segment 0x55.What could be the cause of this?
(2)How to correctly configure UART to LIN sub-mode ?
- Labels:
-
PSoC 4 MCU
- Tags:
- CY8C4147LQE-S473
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @tony
Could you please let us know if you are using the UART component in PSoC 4 for implementing the LIN protocol?
In that case I would recommend you to directly use the LIN Slave component that is already provided for the PSoC 4 component:
The LIN component is implemented over the UART SCB component and will automatically take care of the break.
Could you please let us know if there is ant specific reason for using the UART component?
Thanks and Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply!
The reason for using the UART component comes from the requirements of the project. The current interrupt source request is set to RX No empty and Break segment detection. When receiving the break segment, sometimes the break interrupt flag bit of the SCB0_INTR_RX register is not set to 1, but the frame_error flag bit is 1.
Excuse me, what is the reason?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @tony
Could you please attach you project? This will help us to identify what might be causing this issue in a better way.
Also could you please confirm if you have checked break detect interrupt in UART Advanced tab of the UART configuration:
Thanks and Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply!
Because of some project requirements, I cannot provide a complete project file. Here, I attach the UART module configuration picture and the picture of the program flow chart file.
When the BREAK_DETECT flag is set to 1, the data I received is 0xFF. When the FRAME_ERROR flag is set to 1, the data I received is 0x00.