User Manual
667
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
High-Speed Synchronous Serial Interface SSC1/SSC2
21.3.7
Error Detection Mechanisms
The SSC is able to detect four different error conditions. Receive Error and Phase Error are detected in all
modes; Transmit Error and Baud Rate Error apply only to Slave Mode. When an error is detected, the
respective error flag is/can be set and an error interrupt request will be generated by activating the EIR line
(see
) if enabled. The error interrupt handler may then check the error flags to determine the cause
of the error interrupt. The error flags are not reset automatically but rather must be cleared by software after
servicing. This allows servicing of some error conditions via interrupt, while the others may be polled by
software.
Note:
The error interrupt handler must clear the associated (enabled) error flag(s) to prevent repeated
interrupt requests.
Figure 182 SSC Error Interrupt Control
A
Receive Error
(Master or Slave Mode) is detected when a new data frame is completely received but the
previous data was not read out of the receive buffer register RB. This condition sets the error flag CON.RE and
the error interrupt request line EIR, when enabled via CON.REN. The old data in the receive buffer RB will be
overwritten with the new value and is irretrievably lost.
00C7
H
100 kBaud
0.0%
07CF
H
10 kBaud
0.0%
4E1F
H
1 kBaud
0.0%
FFFF
H
305.18 Baud
0.0%
Table 348 Typical Baud Rates of the SSC (
f
hw_clk
= 40 MHz)
Reload Value
Baud Rate (=
f
MS_CLK/SS_CLK
)
Deviation
&
&
&
Bits in Register
CON
Error Interrupt
EIR
Baud rate
Error
Phase
Error
Receive
Error
REN
PEN
PE
BEN
BE
> 1
RE
&
Transmit
Error
TEN
TE