![NEC V850/SC1 User Manual Download Page 295](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178295.webp)
CHAPTER 8 TIMER/COUNTER FUNCTION
User’s Manual U15109EJ3V0UD
293
(7) Operation of OVFn flag
(a) OVFn flag set
The OVFn flag is set to 1 in the following case in addition to when TMn register overflows:
Selection of mode in which TM0 is cleared and started on a match between TMn and CRn0.
↓
CRn0 is set to FFFFH.
↓
When TMn is cleared from FFFFH to 0000H on a match with CRn0.
Figure 8-30. Operation Timing of OVFn Flag
'
####'
!"#
###3' ####'
'
Remark
n = 0, 1, 7 to 12
(b) Clear OVFn flag
Even if the OVFn flag is cleared before the next count clock is counted (before TMn becomes 0001H) after
TMn has overflowed, the OVFn flag is set again and the clear becomes invalid.
Remark
n = 0, 1, 7 to 12
(8) Conflict operation
(a) If the read period and capture trigger input conflict
When 16-bit capture/compare registers n0 and n1 (CRn0, CRn1) are used as capture registers, if the read
period and capture trigger input conflict, the capture trigger has priority. The read data of CRn0 and CRn1 is
undefined.
(b) If the match timings of the write period and TMn conflict
When 16-bit capture/compare registers n0 and n1 (CRn0, CRn1) are used as capture registers, because
match detection cannot be performed correctly if the match timings of the write period and 16-bit timer
register n (TMn) conflict, do not write to CRn0 and CRn1 close to the match timing.
Remark
n = 0, 1, 7 to 12