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

Figure 6-53. Example of Set Contents of Registers During Operation as Interval Timer/Square Wave Output (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 />

CCSmn0<br />

0<br />

MAS<br />

TERmn<br />

0<br />

STSmn2 STSmn1 STSmn0 CISmn1 CISmn0<br />

0<br />

0<br />

0<br />

R01UH0317EJ0004 Rev. 0.04 405<br />

Feb. 22, 2013<br />

0<br />

0<br />

0<br />

0<br />

MDmn3 MDmn2 MDmn1 MDmn0<br />

Operation mode of channel n<br />

000B: Interval timer<br />

0<br />

0<br />

0<br />

1/0<br />

Setting of operation when counting is started<br />

0: Neither generates INTTMmn nor inverts<br />

timer output when counting is started.<br />

1: Generates INTTMmn and inverts timer<br />

output when counting is started.<br />

Selection of TImn pin input edge<br />

00B: Sets 00B because these are not used.<br />

Start trigger selection<br />

000B: Selects only software start.<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 />

1/0 1: Outputs 1 from TOmn.<br />

TOm TOmn<br />

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

Bit n<br />

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

1/0 1: Enables the TOmn output operation by counting operation.<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!