NuMicro® NUC029LEE/NUC029SEE32-bit Arm® Cortex® -M0 MicrocontrollerAug, 2018 Page 349 of 497 Rev 1.00NUMICRO® NUC029LEE/NUC029SEE TECHNICAL REFERENCE MANUAL6.13.5.8.2 Structure of LIN ByteIn LIN mode, each byte field is initiated by a START bit with value 0 (dominant), followed by 8data bits and no parity bit, LSB is first and ended by 1 stop bit with value 1 (recessive) inaccordance with the LIN standard. The structure of Byte is shown as Figure 6.13-11.StartbitLSB(bit 0) (bit 1) (bit 2) (bit 3) (bit 4) (bit 5)MSB(bit 7)(bit 6)StopbitByte fieldLIN BusFigure 6.13-11 Structure of LIN Byte6.13.5.8.3 LIN Master ModeThe UART0~UART2 controller supports LIN Master mode. To enable and initialize the LIN Mastermode, the following steps are necessary:1. Setting the UA_BAUD register to select the desired baud rate.2. Setting WLS (UA_LCR[1:0]) to “11” to configure the data length with 8 bits, clearing PBE(UA_LCR[3]) bit to disable parity check and clearing NSB (UA_LCR[2]) bit to configure with onestop bit.3. Setting FUN_SEL (UA_FUN_SEL[1:0]) to “01” to select LIN function mode operation.A complete header consists of a break field and sync field followed by a frame identifier (frameID). The UART0/UART1 controller can be selected header sending by three header selectedmodes. The header selected mode can be “break field” or “break field and sync field” or “breakfield, sync field and frame ID field” by setting LIN_HEAD_SEL (UA_LIN_CTL[23:22]). If theselected header is “break field”, software must handle the following sequence to send a completeheader to bus by filling sync data (0x55) and frame ID data to the UA_THR register. If theselected header is “break field and sync field”, software must handle the sequence to send acomplete header to bus by filling the frame ID data to UA_THR register, and if the selectedheader is “break field, sync field and frame ID field”, hardware will control the header sendingsequence automatically but software must filled frame ID data to LIN_PID (UA_LIN_CTL [31:24]).When operating in header selected mode in which the selected header is “break field, sync fieldand frame ID field”, the frame ID parity bit can be calculated by software or hardware dependingwhether the LIN_IDPEN (UA_LIN_CTL[9]) bit is set or not.LIN_HEAD_SEL Break Field Sync Field ID Field0 Generated by Hardware Handled by Software Handled by Software1 Generated by Hardware Generated by Hardware Handled by Software2 Generated by Hardware Generated by HardwareGenerated by Hardware(But Software needs to fill ID to LIN_PID(UA_LIN_CTL[31:24]) firstTable 6.13-9 LIN Header Selection in Master ModeWhen UART is operated in LIN data transmission, LIN bus transfer state can be monitored byhardware or software. User can enable hardware monitoring by setting BIT_ERR_EN