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 |