
408
CHAPTER 20 LIN-UART
●LIN Synchronization Field Edge Detection Interrupts
This paragraph is only relevant, if LIN-UART operates in mode 3 as a LIN slave. After LIN synch break
detection, the internal signal is set to "1" at first falling edge of the LIN synch field and to "0" after fifth
falling edge. When the internal signal is set in the capture side to be inputted to capture (ICV0/1) and to be
detected both edges, the interrupt occurs if the capture interrupt is enabled. The difference of the count
values detected in the capture is serial clock 8 bits for master, and new baud rate can be calculated.
When the falling edge of the start bit is detected, the reload counter restarts automatically.
■LIN-UART Interrupts and EI2OS
■LIN-UART EI2OS functions
LIN-UART has a circuit for operating EI2OS, which can be started up for either reception or transmission
interrupts.
●For Reception
EI2OS can be used if other interrupt is not enabled because the UART shares the interrupt control registers
with transmission interrupt and other UART.
●For Transmission
LIN-UART shares the interrupt control registers with the LIN-UART reception interrupts and other UART.
Therefore, EI2OS can be started up only when no LIN-UART reception interrupts are used.
Table 20.5-2 LIN-UART Interrupts and EI2OS
Channel Interrupt
number Interrupt control register Vector table address EI2OS
Register
name Address Lower Upper Bank
LIN-UART0 reception #35(23H) ICR12 0000BCHFFFF70HFFFF71HFFFF72H*1
LIN-UART0 transmission #36(24H) ICR12 0000BCHFFFF6CHFFFF6DHFFFF6EH*2
LIN-UART1 reception #37(25H) ICR13 0000BDHFFFF68HFFFF69HFFFF6AH*1
LIN-UART1 transmission #38(26H) ICR13 0000BDHFFFF64HFFFF65HFFFF66H*2
*1: Usable when ICR12 and ICR13 or interrupt causes that share an interrupt vector are not used. Provided with a function
that detects a LIN-UART reception error and stops EI2OS.
*2: Usable when ICR12 and ICR13 or interrupt causes that share an interrupt vector are not used.