174
µ
PD78214 Sub-Series
(b) Count value read processing
3. With an in-circuit emulator, digital noise on the CI/INTP2 pin cannot be removed correctly. When the event counter
function is used, the operation described below is performed if an edge is detected erroneously.
• When IE-78210-R is used
Count operation is performed on an erroneously detected edge. At this time, an interrupt request is also generated on
the edge.
• When other in-circuit emulators are used
Count operation is not performed on an erroneously detected edge. However, an interrupt request is generated on the
edge.
For detailed information about erroneous edge detection, see Section 11.4.
Reads count value
Read contents of TM2
; Check TM2 value.
If 0, check interrupt
request flag.
; Check contents of PIF2.
If 1, valid edge has
been input.
End ; The number of valid edges input to register A is set.
IF0L.2 = 1?
Yes
Yes
No
AA + 1
ATM2
A = 0?
No