BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
649 / 1149
Rev.1.02
19.5.8
In 3-wire serial I/O (SSPI00, SSPI01, SSPI10, SSPI11, SSPI20 , SSPI21, SSPI30,
SSPI31)
Processing steps when an error occurs during communication
In 3-wire serial I/O (SSPI00, SSPI01, SSPI10, SSPI11, SSPI20 , SSPI21, SSPI30, SSPI31) The
processing steps when an error occurs during communication, such as Figure 19-68shows.
Figure 19-68
processing steps when an overflow error occurs
software operation
Hardware Status
Comments
Read the serial data
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.
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
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~2)n: Channel number (n=0~3)mn=00~
03, 10
~
11, 20
~
21