LIN Controller (LINFlex) RM0046
526/936 Doc ID 16912 Rev 5
Figure 259. Identifier match index
Slave mode with automatic resynchronization
Automatic resynchronization must be enabled in Slave mode if f
periph_set_1_clk
tolerance is
greater than 1.5%. This feature compensates a f
periph_set_1_clk
deviation up to 14%, as
specified in LIN standard.
This mode is similar to Slave mode as described in Section , Slave mode, with the addition
of automatic resynchronization enabled by the LASE bit. In this mode LINFlex adjusts the
fractional baud rate generator after each Synch Field reception.
Automatic resynchronization method
When automatic resynchronization is enabled, after each LIN Break, the time duration
between five falling edges on RDI is sampled on f
periph_set_1_clk
and the result of this
measurement is stored in an internal 19-bit register called SM (not user accessible) (see
Figure 260). Then the LFDIV value (and its associated registers LINIBRR and LINFBRR) is
automatically updated at the end of the fifth falling edge. During LIN Synch Field
a
(a > 0)
a0
— TX interrupt on identifiers
matching the filters,
— RX interrupt on all other
identifiers if BF bit is set, no RX
interrupt if BF bit is reset
n
(n=a+b)
a
(a > 0)
b
(b > 0)
— TX interrupt on identifiers
matching the TX filters,
— RX interrupt on identifiers
matching the RX filters,
— all other identifiers discarded
(no interrupt)
b
(b > 0)
0b
— RX interrupt on identifiers
matching the filters,
— TX interrupt on all other
identifiers if BF bit is set, no TX
interrupt if BF bit is reset
Table 261. Filter to interrupt vector correlation
Number of
active filters
Number of active filters
configured as TX
Number of active filters
configured as RX
Interrupt vector
IFMI
MESSAGE0
MESSAGE1
MESSAGE2
DATA
pointers
table
SRAM
@
+