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.4.4 Collective manipulation of TOmn bits<br />

In the TOm register, the setting bits (TOmn) for all the channels are located in one register in the same way as the TSm<br />

register (channel start trigger). Therefore, TOmn of all the channels can be manipulated collectively. Only specific bits<br />

can also be manipulated by setting the corresponding TOEmn = 0 to a target TOmn (channel output).<br />

Before writing<br />

Figure 6-46. Example of TO0n Bits Collective Manipulation<br />

TO0 0 0 0 0 0 0 0 0 TO07<br />

TOE0 0 0 0 0 0 0 0 0 TOE07 TOE06 TOE05 TOE04 TOE03 TOE02 TOE01 TOE00<br />

After writing<br />

Data to be written<br />

R01UH0317EJ0004 Rev. 0.04 398<br />

Feb. 22, 2013<br />

0<br />

0<br />

TO06<br />

0<br />

0<br />

TO05<br />

1<br />

1<br />

TO04<br />

0<br />

0<br />

TO03<br />

0<br />

1<br />

TO02<br />

0<br />

1<br />

TO01<br />

0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1<br />

TO0 0 0 0 0 0 0 0 0 TO07<br />

Writing is done only to TOmn bits with TOEmn = 0, and writing to TOmn bits with TOEmn = 1 is ignored.<br />

TOmn (channel output) to which TOEmn = 1 is set is not affected by the write operation. Even if the write operation is<br />

done to TOmn, it is ignored and the output change by timer operation is normally done.<br />

TO07<br />

TO06<br />

TO05<br />

TO04<br />

TO03<br />

TO02<br />

TO01<br />

TO00<br />

1<br />

TO06<br />

1<br />

TO05<br />

1<br />

TO04<br />

0<br />

TO03<br />

Figure 6-47. TOmn Pin Statuses by Collective Manipulation of TO0n Bits<br />

Before writing<br />

Writing to TO0n register<br />

Two or more TO0n output can<br />

be changed simultaneously<br />

0<br />

Output does not change<br />

when value does not<br />

change<br />

Writing to TO0n register<br />

is ignored when TOE0n<br />

= 1<br />

Caution When TOEmn = 1, even if the output by timer interrupt of each channel (INTTMmn) contends with<br />

writing to TOmn, output is normally done to TOmn pin.<br />

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

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

TO02<br />

0<br />

1<br />

1<br />

TO01<br />

1<br />

TO00<br />

<br />

0<br />

1<br />

TO00<br />

0

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

Saved successfully!

Ooh no, something went wrong!