CHAPTER 22 INTERRUPT FUNCTIONS
429
User’s Manual U12697EJ3V0UM
22.8.9 Counter mode
(1) Operation
MSC is decremented the number of times set in advance to the macro service counter (MSC).
Because the number of times an interrupt occurs can be counted, this function can be used as an event counter
where the interrupt generation cycle is long.
Figure 22-40. Macro Service Data Transfer Processing Flow (Counter Mode)
Macro service request
acknowledgement
End
End
Reads contents of macro service
mode register
Clears interrupt processing type
bit (ISM) to 0
(Vectored interrupt request is generated)
Clears interrupt request flag
(IF) to 0
Identifies channel type
MSC = 0?
VCIE = 1?
MSC MSC – 1
MSC is 16-bit width
No
No
Yes
Counter mode
To other macro service processing
Yes
Others