RL78/G10 CHAPTER 6 TIMER ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 153
Dec 22, 2016
6.6.4 Collective manipulation of TO0n bit
In timer output register 0 (TO0), the setting bits for all the channels are located in one register in the same way as timer
channel start register 0 (TS0). Therefore, the TO0n bit of all the channels can be manipulated collectively.
Only the desired bits can also be manipulated by enabling writing only to the TO0n bits (TOE0n = 0) that correspond to
the relevant bits of the channel used to perfor0 output (TO0n).
Figure 6-35. Example of TO0n Bit Collective Manipulation
Before writing
TO0
0
0
0
0
TO03
Note
0
TO02
Note
0
TO01
1
TO00
0
TOE0
0
0
0
0
TOE03
Note
0
TOE02
Note
0
TOE01
1
TOE00
0
Data to be written
TO0 0 0 0 0 1 1 0 0
After writing
TO0
0
0
0
0
TO03
Note
1
TO02
Note
1
TO01
1
TO00
0
Writing is done only to the TO0n bit with TOE0n = 0, and writing to the TO0n bit with TOE0n = 1 is ignored.
TO0n (channel output) to which TOE0n = 1 is set is not affected by the write operation. Even if the write operation is
done to the TO0n bit, it is ignored and the output change by timer operation is normally done.
Figure 6-36. TO0n Pin Statuses by Collective Manipulation of TO0n Bit
TO02
Note
TO03
Note
TO01
T
O00
Two or more TO0n output can
be changed simultaneously
Output does not change
when value does not
change
Writing to the TO0n bit is
ignored when TOE0n
= 1
Before writing Writing to the TO0n bit
Note 16-pin products only.
Remark n: Channel number
n = 0, 1 (for 10-pin products); n = 0 to 3 (for 16-pin products)
O
×
O
O