CHAPTER 22 INTERRUPT FUNCTIONS
418
User’s Manual U12697EJ3V0UM
(2) Macro service channel configuration
There are two kinds of type C macro service channel, as shown in Figure 22-31.
The timer macro service pointer (MPT) mainly indicates the data buffer area in the 1 MB memory space to be
transferred or added to the timer/counter compare register.
The data macro service pointer (MPD) indicates the data buffer area in the 1 MB memory space to be transferred
to the real-time output port.
The modulo register (MR) specifies the number of repeat patterns when ring control is used.
The ring counter (RC) holds the step in the pattern when ring control is used. When initialization is performed,
the same value as in the MR is normally set in this counter.
The macro service counter (MSC) is a 16-bit counter that specifies the number of data transfers.
The lower 8 bits of the SFR that is the transfer destination is written to the timer SFR pointer (TSFRP) and data
SFR pointer (DSFRP).
The macro service channel that stores these pointers and counters is located in internal RAM space addresses
0FE00H to 0FEFFH when the LOCATION 0H instruction is executed, or 0FFE00H to 0FFEFFH when the
LOCATION 0FH instruction is executed. The macro service channel is indicated by the channel pointer as shown
in Figure 22-31. In the channel pointer, the lower 8 bits of the address are written to the macro service counter
in the macro service channel.