CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
Preliminary User’s Manual U16315EJ1V0UD
169
Cautions 1. To clear TCE5n to 0, set the interrupt mask flag (TMMK5n) to 1 beforehand. Otherwise, an
interrupt may occur when TCE5n is cleared.
TCE5n is cleared to 0 as follows.
TMMK5n = 1;
Mask set
TCE5n = 0;
Timer clear
TMIF5n = 0;
Interrupt request flag clear
TMMK5n = 0;
Mask clear
TCE5n = 1;
Timer start
2. The settings of LVS5n and LVR5n are valid in other than PWM mode.
3. Do not rewrite TMC5n1 and TOE5n simultaneously.
4. When switching to the PWM mode, do not rewrite TM5n6 and LVS5n or LVR5n
simultaneously.
5. To rewrite TMC5n6, stop operation beforehand.
Remarks 1.
In PWM mode, PWM output is made inactive by setting TCE5n to 0.
2.
If LVS5n and LVR5n are read after data is set, 0 is read.
3.
The values of the TMC5n6, LVS5n, LVR5n, TMC5n1, and TOE5n bits are reflected at the TO5n pin
regardless of the value of TCE5n.
4.
n = 0, 1
•
•
•
•
•
•