The OP
Published on 2018-11-6 16:48
Only look at the author
This post is from TI Technology Forum
Latest reply
This post was last edited by chunyang on 2018-11-9 11:56You should check your program carefully. The serial port interrupt is a mechanism of the MCU, not generated by the LIN interface chip itself. As long as you enable the receive interrupt in your program, the data output given by LIN will naturally cause the MCU to generate a receive interrupt. Don't enable the receive when you are sending, but enable it when you need to receive. If you enable the receive first, you need to clear the receive flag in the serial port receive register before enabling the receive interrupt. This is the minimum process flow of serial port programming.
Details
Published on 2018-11-9 11:39
| ||
|
||
2
Published on 2018-11-6 21:13
Only look at the author
This post is from TI Technology Forum
Comments
A single transmission will not generate a receive interrupt. If the receive-send-receive-... cycle continues, the first transmission will not trigger a receive interrupt, but starting from the second transmission, each transmission will trigger a receive interrupt. I looked at the chip manual and didn't see this mechanism. LIN itself should not have this mechanism, right?
Details
Published on 2018-11-9 08:27
| ||
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
|
||
|
3
Published on 2018-11-8 14:44
Only look at the author
This post is from TI Technology Forum
Comments
A single transmission will not generate a receive interrupt. If the receive-send-receive-... cycle continues, the first transmission will not trigger a receive interrupt, but starting from the second transmission, each transmission will trigger a receive interrupt. I looked at the chip manual and didn't see this mechanism. LIN itself should not have this mechanism, right?
Details
Published on 2018-11-9 08:26
| ||
|
||
|
This post is from TI Technology Forum
Comments
Check your program carefully. The serial port interrupt is a mechanism of the MCU, not generated by the LIN interface chip itself. As long as you enable the receive interrupt in the program, the LIN data output will naturally cause the MCU to generate a receive interrupt. Do not enable the receive interrupt when sending, but enable it when you need to receive.
Details
Published on 2018-11-9 11:39
| ||
|
||
|
This post is from TI Technology Forum
| ||
|
||
|
6
Published on 2018-11-9 11:39
Only look at the author
This post is from TI Technology Forum
| ||
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
|
||
|
论坛威望大于30000或网友提名:坛子里公认的技术导师
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190