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

6.4.2 TOmn pin output setting<br />

The following figure shows the procedure and status transition of TOmn output pin from initial setting to timer operation<br />

start.<br />

Figure 6-41. Status Transition from Timer Output Setting to Operation Start<br />

TCRmn<br />

(Counter)<br />

Timer alternate-function pin<br />

Timer output signal<br />

TOmn<br />

TOEmn<br />

Undefined value (FFFFH after reset)<br />

Write operation enabled period to TOmn<br />

Set the TOMmn<br />

Set the TOLmn<br />

The operation mode of timer output is set.<br />

Hi-Z<br />

Write operation disabled period to TOmn<br />

Set the TOmn Set the TOEmn Set the port to Timer operation start<br />

output mode<br />

TOMmn bit (0: Toggle mode, 1: Combination operation mode)<br />

TOLmn bit (0: Forward output, 1: Reverse output)<br />

The timer output signal is set to the initial status by setting TOmn.<br />

The timer output operation is enabled by writing 1 to TOEmn (writing to TOmn is disabled).<br />

The port I/O setting is set to output (see 6.3 (19) Port mode registers 0 to 9, 13 to 15).<br />

The timer operation is enabled (TSmn = 1).<br />

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

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

R01UH0317EJ0004 Rev. 0.04 392<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!