Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  6   TIMER  ARRAY  UNIT 
R01UH0305EJ0200  Rev.2.00 
 
 
232  
Jul 04, 2013 
6.6.3  Cautions on channel output operation 
 
(1)  Changing values set in the registers TOm, TOEm, and TOLm during timer operation 
Since the timer operations (operations of timer count register mn (TCRmn) and timer data register mn (TDRmn)) are 
independent of the TOmn output circuit and changing the values set in timer output register m (TOm), timer output 
enable register m (TOEm), and timer output level register m (TOLm) does not affect the timer operation, the values can 
be changed during timer operation.  To output an expected waveform from the TOmn pin by timer operation, however, set 
the TOm, TOEm, TOLm, and TOMm registers to the values stated in the register setting example of each operation 
shown by 6.8 and 6.9. 
When the values set to the TOEm, and TOLm registers (but not the TOm register) are changed close to the occurrence 
of the timer interrupt (INTTMmn) of each channel, the waveform output to the TOmn pin might differ, depending on 
whether the values are changed immediately before or immediately after the timer interrupt (INTTMmn) occurs. 
 
Remark  m: Unit number (m = 0), n: Channel number (n = 0, 1, 3 to 7)