TC1796
Peripheral Units (Vol. 2 of 2)
Synchronous Serial Interface (SSC)
User’s Manual
20-24
V2.0, 2007-07
SSC, V2.1
20.1.2.12 Error Detection Mechanisms
The SSC is able to detect four different error conditions. Receive Error and Phase Error
are detected in all modes, while Transmit Error and Baud Rate Error apply to Slave Mode
only. When an error is detected, the respective error flag is always set and the error
interrupt request will be generated by activating the EIR line if the corresponding error
enable bit is set (see
). The error interrupt handler may then check the error
flags to determine the cause of the error interrupt. The error flags are not cleared
automatically, but must be cleared via register EFM after servicing. This allows servicing
of some error conditions via interrupt, while others may be polled by software. The error
status flags can be set and cleared by software via the error flag modification register
EFM.
Note: The error interrupt handler must clear the associated (enabled) error flag(s) to
prevent repeated interrupt requests.
Figure 20-14 SSC Error Interrupt Control
MCA05789_mod
Error
Interrupt
EIR
≥
1
CON.PEN
STAT.PE
&
Set
Clear
Set
CON.BEN
STAT.BE
Set
Clear
Set
&
EFM.SETTE
EFM.CLRTE
EFM.SETRE
EFM.CLRRE
EFM.SETPE
EFM.CLRPE
EFM.SETBE
EFM.CLRBE
CON.TEN
&
STAT.TE
Set
Clear
Set
Transmit Error
Receive Error
CON.TEN
&
STAT.TE
Set
Clear
Set
Phase Error
Baud Rate Error