RL78/G15 CHAPTER 6 TIMER ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 216 of 765
Mar 7, 2023
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 in 6.7 Timer Input (TImn) Control and 6.8 Independent Channel Operation Function of Timer Array Unit.
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 to 7)