CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 411 / 703
12.6.5 Procedure for handling errors during clock-synchronous serial communication with the
slave selection input function
The processing steps when an error occurs during clock-synchronous serial communication
that is subordinate to the select input function are shown in Figure 12-95.
Figure 12-95 Handling steps when an overflow error occurs
Read the serial data register
mn(SDRMN).
The BFF m n bit of the SSRm n
register is 0 and channel n is
acceptable.
This is to prevent overflow errors
from ending the next reception during
mishandling.
Read the serial status register mn
(SSRmn).
The type of error is judged, and the
reading value is used to clear the
error flag.
Clear the trigger register mn to the
serial flag
By writing the read value of the
SSRmn register directly to the
SDIRmn register, errors during read
operations can only be cleared.
Remark m: Unit number (m=0) n: Channel number (n=0).