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.

Operation is resumed (on the next page).<br />

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

TAU<br />

default<br />

setting<br />

Channel<br />

default<br />

setting<br />

Operation<br />

start<br />

Figure 6-85. Operation Procedure When Multiple PWM Output Function Is Used (1/2)<br />

Software Operation <strong>Hardware</strong> Status<br />

Sets the TAU0EN bit, TAU1EN bit of the PER0 register<br />

to 1.<br />

Sets the TPSm register.<br />

Determines clock frequencies of CKm0 to CKm3.<br />

Sets the TMRmn, TMRmp, and TMRmq registers of<br />

each channel to be used (determines operation mode of<br />

channels).<br />

An interval (period) value is set to the TDRmn register of<br />

the master channel, and a duty factor is set to the<br />

TDRmp and TDRmq registers of the slave channel.<br />

Sets slave channel.<br />

The TOMmp and TOMmq bits of the TOMm register<br />

are set to 1 (combination operation mode).<br />

Clears the TOLmp and TOLmq bits to 0.<br />

Sets the TOmp and TOmq bits and determines default<br />

level of the TOmp and TOmq outputs.<br />

Sets TOEmp and TOEmq to 1 and enables operation<br />

of TOmp and TOmq.<br />

Clears the port register and port mode register to 0.<br />

Sets TOEmp and TOEmq (slave) to 1 (only when<br />

operation is resumed).<br />

The TSmn bit (master), and TSmp and TSmq (slave) bits<br />

of the TSm register are set to 1 at the same time.<br />

The TSmn, TSmp, and TSmq bits automatically return<br />

to 0 because they are trigger bits.<br />

Power-off status<br />

(Clock supply is stopped and writing to each register is<br />

disabled.)<br />

Power-on status. Each channel stops operating.<br />

(Clock supply is started and writing to each register is<br />

enabled.)<br />

Channel stops operating.<br />

(Clock is supplied and some power is consumed.)<br />

The TOmp and TOmq pins go into Hi-Z output state.<br />

The TOmp and TOmq default setting levels are output<br />

when the port mode register is in output mode and the port<br />

register is 0.<br />

TOmp or TOmq does not change because channel stops<br />

operating.<br />

The TOmp and TOmq pins output the TOmp and TOmq<br />

set levels.<br />

TEmn = 1, TEmp, TEmq = 1<br />

When the master channel starts counting, INTTMmn is<br />

generated. Triggered by this interrupt, the slave channel<br />

also starts counting.<br />

R01UH0317EJ0004 Rev. 0.04 454<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!