
269
CHAPTER 16 INTERRUPT FUNCTION
User
’
s Manual U15017EJ2V0UD
There are four kinds of macro service, as shown below.
(1) Type A
One byte or one word of data is transferred between a special function register (SFR) and memory each time
an interrupt request is generated, and a vectored interrupt request is generated when the specified number of
transfers have been performed.
Memory that can be used in the transfers is limited to internal RAM addresses 0FE06H to 0FE1DH when the
LOCATION 0H instruction is executed, and addresses 0FFE06H to 0FFE1DH when the LOCATION 0FH
instruction is executed.
The specification method is simple and is suitable for low-volume, high-speed data transfers.
(2) Type B
As with type A, one byte or one word of data is transferred between a special function register (SFR) and memory
each time an interrupt request is generated, and a vectored interrupt request is generated when the specified
number of transfers have been performed.
The SFR and memory to be used in the transfers is specified by the macro service channel (the entire 1M-byte
memory space can be used).
This is a general version of type A, suitable for large volumes of transfer data.
(3) Type C
Data is transferred from memory to two special function registers (SFR) each time an interrupt request is
generated, and a vectored interrupt request is generated when the specified number of transfers have been
performed.
With type C macro service, not only are data transfers performed to two locations in response to a single interrupt
request, but it is also possible to add output data ring control and a function that automatically adds data to a
compare register. The entire 1 MB memory space can be used.
(4) Counter mode
This mode is to decrement the macro service counter (MSC) when an interrupt occurs and is used to count the
division operation of an interrupt and interrupt generator.
When MSC is 0, a vector interrupt can be generated.
To restart the macro service, MSC must be set again.
MSC is fixed to 16 bits and cannot be used as an 8-bit counter.