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

Figure 6-65. Example of Set Contents of Registers to Measure Input Pulse Interval (1/2)<br />

(a) Timer mode register mn (TMRmn)<br />

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

TMRmn CKSmn1 CKSmn0<br />

1/0<br />

1/0<br />

0<br />

CCSmn<br />

0<br />

MAS<br />

TERmn<br />

0<br />

STSmn2 STSmn1 STSmn0 CISmn1 CISmn0<br />

0<br />

0<br />

1<br />

R01UH0317EJ0004 Rev. 0.04 421<br />

Feb. 22, 2013<br />

1/0<br />

1/0<br />

0<br />

0<br />

MDmn3 MDmn2 MDmn1 MDmn0<br />

Operation mode of channel n<br />

010B: Capture mode<br />

0<br />

1<br />

0<br />

1/0<br />

Setting of operation when counting is started<br />

0: Does not generate INTTMmn when<br />

counting is started.<br />

1: Generates INTTMmn when counting is<br />

started.<br />

Selection of TImn pin input edge<br />

00B: Detects falling edge.<br />

01B: Detects rising edge.<br />

10B: Detects both edges.<br />

11B: Setting prohibited<br />

Capture trigger selection<br />

001B: Selects the TImn pin input valid edge.<br />

Slave/master selection<br />

0: Cleared to 0 when single-operation function is selected.<br />

Count clock selection<br />

0: Selects operation clock.<br />

Operation clock selection<br />

00B: Selects CKm0 as operation clock of channel n.<br />

01B: Selects CKm1 as operation clock of channel n.<br />

10B: Selects CKm2 as operation clock of channel n.<br />

11B: Selects CKm3 as operation clock of channel n.<br />

(b) Timer output register m (TOm)<br />

Bit n<br />

0: Outputs 0 from TOmn.<br />

0<br />

TOm TOmn<br />

(c) Timer output enable register m (TOEm)<br />

Bit n<br />

0: Stops TOmn output operation by counting operation.<br />

0<br />

TOEm TOEmn<br />

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

n: Channel number (n = 0 to 7)

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

Saved successfully!

Ooh no, something went wrong!