Fujitsu MB95630H Series Hardware Manual page 252

8-bit microcontroller new 8fx
Hide thumbs Also See for MB95630H Series:
Table of Contents

Advertisement

CHAPTER 14 LIN-UART
14.6 Operations of LIN-UART and LIN-UART
Setting Procedure Example
Find the baud rate setting with the following equations.
When the counter of the 8/16-bit composite timer does not overflow
When the counter of the 8/16-bit composite timer has overflowed
Note:
If the BGR value newly calculated based on the synch field in LIN slave mode as
explained above has an error of ±15% or more, do not set the baud rate.
For the operations of the input capture function of the 8/16-bit composite timer, see "11.12
Operation of Input Capture Function".
● LIN synch break detection interrupt and flag
The LIN break detection (LBD) flag in ESCR is set to "1" when the LIN synch break is
detected in slave mode. When the LIN break interrupt is enabled (LBIE = 1), an interrupt is
generated.
Figure 14.6-7 Timing of LIN Synch Break Detection and Flag Set
Serial clock
Serial input
(LIN bus)
LBD
TII0 input
(LSYN)
The above diagram shows the timing of the LIN synch break detection and flag.
Since the data framing error (FRE) flag bit in SSR generates a receive interrupt two bits earlier
than a LIN break interrupt (if the following communication format is used: 8-bit data, no
parity, one stop bit.), set the RXE to "0" when using the LIN break.
The LIN synch break detection functions only in operating mode 3.
Figure 14.6-8 shows the LIN-UART operation in LIN slave mode.
232
max: Maximum value of free-run timer
a: TII0 data register value after the first interrupt
b: TII0 data register value after the second interrupt
Synch break (for 14 bits setting)
FUJITSU SEMICONDUCTOR LIMITED
MB95630H Series
: BGR value = (b - a) / 8 - 1
: BGR value = (max + b - a) / 8 - 1
LBD cleared by CPU
Synch field
MN702-00009-1v0-E

Advertisement

Table of Contents
loading

Table of Contents