04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 12 SERIAL ARRAY UNIT<br />

12.7 Procedure for processing errors that occurred during simplified I 2 C (IIC11) communication<br />

The procedure for processing errors that occurred during simplified I 2 C (IIC11) communication is described in Figures<br />

12-84 and 12-85.<br />

Figure 12-84. Processing Procedure in Case of Parity Error or Overrun Error<br />

Software Manipulation <strong>Hardware</strong> Status Remark<br />

Reads SDRmn register. BFF = 0, and channel n is enabled to<br />

receive data.<br />

This is to prevent an overrun error if<br />

the next reception is completed<br />

during error processing.<br />

Reads SSRmn register. Error type is identified and the read<br />

value is used to clear error flag.<br />

Writes SIRmn register. Error flag is cleared. Only error generated at the point of<br />

reading can be cleared, by writing<br />

the value read from the SSRmn<br />

register to the SIRmn register<br />

without modification.<br />

Figure 12-85. Processing Procedure in Case of Parity Error (ACK error) in Simplified I 2 C Mode<br />

Software Manipulation <strong>Hardware</strong> Status Remark<br />

Reads SDRmn register. BFF = 0, and channel n is enabled to<br />

receive data.<br />

This is to prevent an overrun error if<br />

the next reception is completed<br />

during error processing.<br />

Reads SSRmn register. Error type is identified and the read<br />

value is used to clear error flag.<br />

Writes SIRmn register. Error flag is cleared. Only error generated at the point of<br />

reading can be cleared, by writing<br />

the value read from the SSRmn<br />

register to the SIRmn register<br />

without modification.<br />

Sets STmn bit to 1. SEmn = 0, and channel n stops<br />

operation.<br />

Creates stop condition.<br />

Creates start condition.<br />

Sets SSmn bit to 1. SEmn = 1, and channel n is enabled to<br />

operate.<br />

Remark m: Unit number (m = 1), n: Channel number (n = 1)<br />

Slave is not ready for reception<br />

because ACK is not returned.<br />

Therefore, a stop condition is<br />

created, the bus is released, and<br />

communication is started again from<br />

the start condition. Or, a restart<br />

condition is generated and<br />

transmission can be redone from<br />

address transmission.<br />

R01UH0317EJ0004 Rev. 0.04 669<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!