牛卧堂MCU技术交流

标题: [M2003] Simulating LIN Bus Slave Code Using UART [打印本页]

作者: admin    时间: 28 分钟前
标题: [M2003] Simulating LIN Bus Slave Code Using UART
Application
This example code implements LIN bus slave transmission and reception using UART on the M2003 series microcontroller.
BSP Version
M2003_Series_BSP_CMSIS_V3.00.001
Hardware
NuMaker-M2003FC V1.1

This example code implements the LIN bus slave function using the M2003 series
microcontroller (MCU). Two message frames are defined in the code. One is used for sending
data, and the other is used for receiving data.

Messages on the LIN bus start with "at least 13-bit 0" followed by 0x55, packet ID, data, and
checksum. The data field cannot have more than 9 bits of 0. The slave can transmit data only
after receiving an ID that matches itself.

You can download the sample code at EC_M2003_UART_LIN_Slave_V1.00.







欢迎光临 牛卧堂MCU技术交流 (https://www.nuvoton-mcu.com/) Powered by Discuz! X3.2