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 6 TIMER ARRAY UNIT<br />

Table 6-4. Operations from Count Operation Enabled State to TCRmn Count Start<br />

Timer Operation Mode Operation When TSmn = 1 Is Set<br />

Interval timer mode<br />

Event counter mode<br />

Capture mode<br />

No operation is carried out from start trigger detection (TSmn=1) until count clock<br />

generation.<br />

The first count clock loads the value of TDRmn to TCRmn and the subsequent<br />

count clock performs count down operation (see 6.3 (6) (a) Start timing in<br />

interval timer mode).<br />

Writing 1 to TSmn bit loads the value of TDRmn to TCRmn.<br />

The subsequent count clock performs count down operation.<br />

The external trigger detection selected by STSmn2 to STSmn0 bits in the<br />

TMRmn register does not start count operation (see 6.3 (6) (b) Start timing in<br />

event counter mode).<br />

No operation is carried out from start trigger detection until count clock<br />

generation.<br />

The first count clock loads 0000H to TCRmn and the subsequent count clock<br />

performs count up operation (see 6.3 (6) (c) Start timing in capture mode).<br />

One-count mode When TSmn = 0, writing 1 to TSmn bit sets the start trigger wait state.<br />

No operation is carried out from start trigger detection until count clock<br />

generation.<br />

The first count clock loads the value of TDRmn to TCRmn and the subsequent<br />

count clock performs count down operation (see 6.3 (6) (d) Start timing in onecount<br />

mode).<br />

Capture & one-count mode When TSmn = 0, writing 1 to TSmn bit sets the start trigger wait state.<br />

No operation is carried out from start trigger detection until count clock<br />

generation.<br />

The first count clock loads 0000H to TCRmn and the subsequent count clock<br />

performs count up operation (see 6.3 (6) (e) Start timing in capture & onecount<br />

mode).<br />

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

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

R01UH0317EJ0004 Rev. 0.04 338<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!