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

6.1 Functions of Timer Array Unit<br />

The timer array unit has the following functions.<br />

6.1.1 Functions of each channel when it operates independently<br />

Single-operation functions are those functions that can be used for any channel regardless of the operation mode of the<br />

other channel (for details, refer to 6.6.1 Overview of single-operation function and combination operation-function).<br />

(1) Interval timer<br />

Each timer of a unit can be used as a reference timer that generates an interrupt (INTTMmn) at fixed intervals.<br />

Operation clock<br />

Compare operation<br />

Channel n<br />

Interrupt signal<br />

(INTTMmn)<br />

(2) Square wave output<br />

A toggle operation is performed each time INTTMmn is generated and a square wave with a duty factor of 50% is<br />

output from a timer output pin (TOmn).<br />

Operation clock<br />

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

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

Compare operation<br />

Channel n<br />

Timer output<br />

(TOmn)<br />

(3) External event counter<br />

Each timer of a unit can be used as an event counter that generates an interrupt when the number of the valid<br />

edges of a signal input to the timer input pin (TImn) has reached a specific value.<br />

Timer input<br />

(TImn)<br />

Edge detection<br />

Compare operation<br />

Channel n<br />

Interrupt signal<br />

(INTTMmn)<br />

(4) Divider function<br />

A clock input from a timer input pin (TImn) is divided and output from an output pin (TOmn).<br />

Timer input<br />

(TImn)<br />

Compare operation<br />

Channel 0<br />

Timer output<br />

(TOmn)<br />

(5) Input pulse interval measurement<br />

Counting is started by the valid edge of a pulse signal input to a timer input pin (TImn). The count value of the<br />

timer is captured at the valid edge of the next pulse. In this way, the interval of the input pulse can be measured.<br />

Edge detection<br />

Timer input<br />

(TImn)<br />

Channel n<br />

Capture operation<br />

xxH<br />

Capture<br />

R01UH0317EJ0004 Rev. 0.04 314<br />

Feb. 22, 2013<br />

00H<br />

Start

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

Saved successfully!

Ooh no, something went wrong!