CHAPTER 22 INTERRUPT FUNCTIONS
398
User’s Manual U12697EJ3V0UM
22.8.4 Operation at end of macro service
In macro service, processing is performed the number of times specified during execution of another program.
Macro service ends when the processing has been performed the specified number of times (when the macro service
counter (MSC) reaches 0). Either of two operations may be performed at this point, as specified by the VCIE bit (bit
7) of the macro service mode register for each macro service.
(1) When VCIE bit is 0
In this mode, an interrupt is generated as soon as the macro service ends. Figure 22-18 shows an example of
macro service and interrupt acknowledgment operations when the VCIE bit is 0.
This mode is used when a series of operations end with the last macro service processing performed, for instance.
It is mainly used in the following cases:
•
Asynchronous serial interface receive data buffering (INTSR1/INTSR2)
•
A/D conversion result fetch (INTAD)
•
Compare register update as the result of a match between a timer register and the compare register (INTTM00,
INTTM01, INTTM1, INTTM2, INTTM5, and INTTM6)