CHAPTER 14 SERIAL INTERFACE UART6
Preliminary User’s Manual U16315EJ1V0UD
270
Figure 14-2. LIN Reception Operation
Sleep
bus
RX6
Reception interrupt
(INTSR6)
Edge detection
(INTP0)
Capture timer
Data
reception
Wakeup
signal frame
Tuning
break field
Tuning field
Match field
Data field
Data field
Checksum
field
Disable
Enable
Disable
Enable
Note 1
Note 3
Note 4
13 bits
Note 2
SBF
reception
ID reception
SF
reception
Data
reception
Data
reception
Note 5
Notes 1.
The wakeup signal is detected at the edge of the pin, and enables UART6 and sets the SBF reception
mode.
2.
Reception continues until the STOP bit is detected. When 11 bits or more of SBF have been detected,
it is assumed that SBF reception has been completed correctly, and an interrupt signal is output. If
less than 11 bits of SBF have been detected, it is assumed that an SBF reception error has occurred.
The interrupt signal is not output and the SBF reception mode is restored.
3.
If SBF reception has been completed correctly, an interrupt signal is output. This SBF reception
completion interrupt enables the capture timer. Detection of errors OVE6, PE6, and FE6 is
suppressed, and error detection processing of UART communication and data transfer of the shift
register and RXB6 is not performed. The shift register holds the reset value FFH.
4.
Calculate the baud rate error from the value obtained from the capture timer, disable UART6 after SF
reception, and then re-set baud rate generator control register 6 (BRGC6).
5.
Distinguish the checksum field by software. Also perform processing by software to initialize UART6
after reception of the checksum field and to set the SBF reception mode again.
To perform a LIN receive operation, use a configuration like the one shown in Figure 14-3.
The wakeup signal transmitted from the LIN master is received by detecting the edge of the external interrupt
(INTP0). The length of the tuning break field transmitted from the LIN master can be measured using the external
event capture operation of 16-bit timer/event counter 00, and the baud rate error can be calculated using the time and
number of bits of the tuning break field.
The input signal of the reception port input (RxD6) can be input to the external interrupt (INTP0) and 16-bit
timer/event counter 00 by port input switch control (ISC0/ISC1), without connecting RxD6 and INTP0/TI000 externally.
Содержание 78K0/KD1 Series
Страница 2: ...Preliminary User s Manual U16315EJ1V0UD 2 MEMO ...
Страница 444: ...Preliminary User s Manual U16315EJ1V0UD 444 MEMO ...