RL78/G10 CHAPTER 6 TIMER ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 149
Dec 22, 2016
6.6.3 Cautions on channel output operation
(1) Changing values set in the registers TO0, TOE0, TOL0, and TOM0 during timer operation
Since the timer operations (operations of timer count register 0n (TCR0n) and timer data register 0n (TDR0n)) are
independent of the TO0n output circuit and changing the values set in timer output register 0 (TO0), timer output
enable register 0 (TOE0), timer output level register 0 (TOL0), and timer output mode register 0 (TOM0) does not
affect the timer operation, the values can be changed during timer operation. To output an expected waveform
from the TO0n pin by timer operation, however, set the TO0, TOE0, TOL0, and TOM0 registers to the values
stated in the register setting example of each operation.
When the values set to the TOE0, TOL0, and TOM0 registers (but not the TO0 register) are changed close to the
occurrence of the interrupt request signal (INTTM0n) of each channel, the waveform output to the TO0n pin might
differ, depending on whether the values are changed immediately before or immediately after INTTM0n occurs.
Remark n: Channel number
n = 0, 1 (for 10-pin products); n = 0 to 3 (for 16-pin products)
(2) Default level of TO0n pin and output level after timer operation start
The change in the output level of the TO0n pin when timer output register 0 (TO0) is written while timer output is
disabled (TOE0n = 0), the initial level is changed, and then timer output is enabled (TOE0n = 1) before port output
is enabled, is shown below.
(a) When operation starts with master channel output mode (TOM0n = 0) setting
The setting of timer output level register 0 (TOL0) is invalid when master channel output mode (TOM0n = 0).
When the timer operation starts after setting the default level, the toggle signal is generated and the output
level of the TO0n pin is reversed.
Figure 6-31. TO0n Pin Output Status at Toggle Output (TOM0n = 0)
Hi
-
Z
TOE
0n
TO0
n
TO0n bit = 0
(Default status : Low)
TO0n bit = 1
(Default status : High)
TO0n bit = 0
(Default status : Low)
TO0n bit = 1
(Default status : High)
Bold : Active level
Toggle Toggle Toggle Toggle Toggle
Default
status
(output)
Port output is enabled
TOL0n bit = 0
(Active high)
TOL0n bit = 1
(Active low)
Remarks 1. Toggle: Reverse TO0n pin output status
2. n: Channel number
n = 0, 1 (for 10-pin products); n = 0 to 3 (for 16-pin products)