138
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
Preliminary User’s Manual U16035EJ1V0UM
Caution
Before clearing TCE5n to 0, set the interrupt mask flag (TMMK5n) to 1. This is because an
interrupt may occur after TCE5n has been cleared.
Clear TCE5n to 0 using the following procedure.
TMMK5n = 1
; Mask set
TCE5n = 0
; Timer clear
TMIF5n = 0
; Interrupt request flag clear
TMMK5n = 0
; Mask clear
TCE5n = 1
; Timer start
Remarks 1.
In PWM mode, PWM output will be inactive because of TCE5n = 0.
2.
If LVS5n and LVR5n are read after data is set, 0 is read.
3.
n = 0, 1
.
.
.
.
.
.