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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

(7) Serial flag clear trigger register mn (SIRmn)<br />

SIRmn is a trigger register that is used to clear each error flag of channel n.<br />

When each bit (FECTmn, PECTmn, OVCTmn) of this register is set to 1, the corresponding bit (FEFmn, PEFmn,<br />

OVFmn) of serial status register mn is cleared to 0. Because SIRmn is a trigger register, it is cleared immediately<br />

when the corresponding bit of SSRmn is cleared.<br />

SIRmn can be set by a 16-bit memory manipulation instruction.<br />

The lower 8 bits of SIRmn can be set with an 8-bit memory manipulation instruction with SIRmnL.<br />

Reset signal generation clears this register to 0000H.<br />

Figure 12-12. Format of Serial Flag Clear Trigger Register mn (SIRmn)<br />

Address: F0104H, F0105H (SIR00), F0106H, F0107H (SIR01), After reset: 0000H R/W<br />

F0134H, F0135H (SIR10), F0136H, F0137H (SIR11)<br />

Symbol 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

SIRmn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PEC<br />

Tmn<br />

OVC<br />

Tmn<br />

0 No trigger operation<br />

1 Clears the OVFmn bit of the SSRmn register to 0.<br />

Clear trigger of overrun error flag of channel n<br />

PECT11 Clear trigger of parity error of SCL11<br />

0 No trigger operation<br />

1 Clears PEF11 bit of SSR11 register to 0.<br />

Cautions 1. Be sure to clear bits 15 to 2 of SIRmn to “0”.<br />

2. Only the error flag set to the SSRn register is cleared by using the SIRmn register. When a<br />

clear operation is performed for an error flag that is not set and when a new error is detected<br />

between reading the error flag and the clear operation, the error flag may be erased.<br />

Remarks 1. When the SIRmn register is read, 0000H is always read.<br />

2. When writing “1” to a clear trigger and setting (1) the corresponding error flag occur simultaneously,<br />

setting the error flag takes precedence.<br />

3. m: Unit number (m = 0, 1), n: Channel number (n = 0, 1)<br />

R01UH0317EJ0004 Rev. 0.04 576<br />

Feb. 22, 2013<br />

OVC<br />

Tmn

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

Saved successfully!

Ooh no, something went wrong!