BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
681 / 1149
Rev.1.02
19.6.5
The processing step when an error occurs during clock synchronization serial
communication with the slave selection input function
The processing steps for errors that occur during clock synchronization serial communication with the
slave select input function are shown in Figure 19-94.
Figure 19-94
processing steps when the overflow error occurs
software operation
Hardware Status
Comments
Read the serial data register mn
(SDRmn)
The BFFmn bit of the SSRmn
register is "0" and the channel n is in
a receiver state.
This is to prevent an overflow error
from occurring to end the next receipt
during error handling. next receipt
during error handling.
Read the serial status register mn
(SSRmn).
The type of error is determined and
the read value is used to clear the
error flag.
Clear trigger register mn for serial flag
(SDIRmn) Write "1".
Clear the error flag.
By writing the read value of the
SSRmn register directly to the
SDIRmn register, errors in the read
operation can only be cleared.
Note m: Unit number (m=0)
n: Channel number (n=0).