Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  6   TIMER  ARRAY  UNIT 
R01UH0305EJ0200  Rev.2.00 
 
 
235  
Jul 04, 2013 
(3)  Operation of TOmn pin in slave channel output mode (TOMmn = 1) 
 
(a)  When timer output level register m (TOLm) setting has been changed during timer operation 
When the TOLm register setting has been changed during timer operation, the setting becomes valid at the 
generation timing of the TOmn pin change condition.  Rewriting the TOLm register does not change the output 
level of the TOmn pin. 
The operation when TOMmn is set to 1 and the value of the TOLm register is changed while the timer is 
operating (TEmn = 1) is shown below. 
 
Figure 6-34.  Operation when TOLm Register Has Been Changed Contents during Timer Operation 
 
TOLm
Active
Set
Reset
Set
Reset
Set
TOmp
(output)
Active
Reset
Set
Reset
Active
Active
 
 
Remarks 1.  Set: 
The output signal of the TOmn pin changes from inactive level to active level. 
Reset: 
The output signal of the TOmn pin changes from active level to inactive level. 
2.  m: Unit number (m = 0), n: Channel number (n = 0, 1, 3 to 7) 
 
(b) Set/reset timing 
To realize 0%/100% output at PWM output, the TOmn pin/TOmn bit set timing at master channel timer interrupt 
(INTTMmn) generation is delayed by 1 count clock by the slave channel. 
If the set condition and reset condition are generated at the same time, a higher priority is given to the latter. 
Figure 6-35 shows the set/reset operating statuses where the master/slave channels are set as follows. 
 
Master channel: 
TOEmn = 1, TOMmn = 0, TOLmn = 0 
Slave channel:  
TOEmp = 1, TOMmp = 1, TOLmp = 0 
 
Remark  m: Unit number (m = 0), n: Channel number (n = 0, 1, 3 to 7)