Renesas R5S72640 Doll User Manual


  Open as PDF
of 2152
 
Section 16 Renesas Serial Peripheral Interface
R01UH0134EJ0400 Rev. 4.00 Page 827 of 2108
Sep 24, 2014
SH7262 Group, SH7264 Group
16.4.6 Error Detection
In the normal serial transfer, the data written from the data register (SPDR) to the transmit buffer
is serially transmitted, and the serially received data can be read from the receive buffer of SPDR.
If access is made to SPDR, depending on the status of the transmit buffer/receive buffer or the
status at the beginning or end of serial transfer, in some cases non-normal transfers can be
executed.
If a non-normal transfer operation occurs, this module detects the event as an overrun error or a
mode fault error. Table 16.7 shows the relationship between non-normal transfer operations and
the error detection function.
Table 16.7 Relationship between Non-Normal Transfer Operations and Error Detection
Function
Occurrence Condition Operation Error Detection
A SPDR is written when the transmit
buffer is full.
Missing write data. None
B Serial transfer is started in slave mode
when transmit data is still not loaded on
the shift register.
Data received in previous
serial transfer is serially
transmitted.
None
C SPDR is read when the receive buffer
is empty.
The output data is undefined. None
D Serial transfer terminates when the
receive buffer is full.
Missing serial receive data. Overrun error (only
in slave mode)
E The SSL input signal is negated during
serial transfer in slave mode.
Serial transfer suspended.
Missing send/receive data.
Operation disabled.
Mode fault error