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.

Operation is resumed.<br />

Under development<br />

Preliminary document<br />

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

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 6 TIMER ARRAY UNIT<br />

TAU<br />

default<br />

setting<br />

Channel<br />

default<br />

setting<br />

Operation<br />

start<br />

During<br />

operation<br />

Operation<br />

stop<br />

Figure 6-66. Operation Procedure When Input Pulse Interval Measurement Function Is Used<br />

Software Operation <strong>Hardware</strong> Status<br />

Power-off status<br />

(Clock supply is stopped and writing to each register is<br />

disabled.)<br />

Sets the TAU0EN bit, TAU1EN bit of the PER0 register to 1. Power-on status. Each channel stops operating.<br />

(Clock supply is started and writing to each register is<br />

enabled.)<br />

Sets the TPSm register.<br />

Determines clock frequencies of CKm0 to CKm3.<br />

Sets the TMRmn register (determines operation mode of<br />

channel).<br />

Sets TSmn bit to 1.<br />

The TSmn bit automatically returns to 0 because it is a<br />

trigger bit.<br />

Set values of only the CISmn1 and CISmn0 bits of the<br />

TMRmn register can be changed.<br />

The TDRmn register can always be read.<br />

The TCRmn register can always be read.<br />

The TSRmn register can always be read.<br />

Set values of TOMmn, TOLmn, TOmn, and TOEmn bits<br />

cannot be changed.<br />

The TTmn bit is set to 1.<br />

The TTmn bit automatically returns to 0 because it is a<br />

trigger bit.<br />

TAU stop The TAU0EN bit, TAU1EN bit of the PER0 register are<br />

cleared to 0.<br />

Remark m: Unit number (m = 0 to 2)<br />

n: Channel number (n = 0 to 7)<br />

Channel stops operating.<br />

(Clock is supplied and some power is consumed.)<br />

TEmn = 1, and count operation starts.<br />

TCRmn is cleared to 0000H at the count clock input.<br />

When the MDmn0 bit of the TMRmn register is 1,<br />

INTTMmn is generated.<br />

Counter (TCRmn) counts up from 0000H. When the TImn<br />

pin input valid edge is detected, the count value is<br />

transferred (captured) to TDRmn. At the same time,<br />

TCRmn is cleared to 0000H, and the INTTMmn signal is<br />

generated.<br />

If an overflow occurs at this time, the OVF bit of the<br />

TSRmn register is set; if an overflow does not occur, the<br />

OVF bit is cleared.<br />

After that, the above operation is repeated.<br />

TEmn = 0, and count operation stops.<br />

TCRmn holds count value and stops.<br />

The OVF bit of the TSRmn register is also held.<br />

Power-off status<br />

All circuits are initialized and SFR of each channel is<br />

also initialized.<br />

R01UH0317EJ0004 Rev. 0.04 423<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!