CHAPTER 22 INTERRUPT FUNCTIONS
412
User’s Manual U12697EJ3V0UM
(2) Macro service channel configuration
The macro service pointer (MP) indicates the data buffer area in the 1 MB memory space that is the transfer
destination or transfer source.
The lower 8 bits of the SFR that is the transfer destination or transfer source is written to the SFR pointer (SFRP).
The macro service counter (MSC) is a 16-bit counter that specifies the number of data transfers.
The macro service channel that stores the MP, SFRP and MSC 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-27. In the channel pointer,
the lower 8 bits of the address are written to the macro service counter in the macro service channel.
Figure 22-27. Type B Macro Service Channel
Macro service
counter (MSC)
SFR pointer (SFRP)
(Bits 8 to 15)
(Bits 0 to 7)
(Bits 16 to 23)
Note
(Bits 8 to 15)
(Bits 0 to 7)
Channel pointer
Mode register
Macro service
pointer (MP)
Macro service
control word
Lower addresses
Macro service
channel
Higher addresses
SFR
Buffer area
Macro service buffer address = macro service pointer
Note
Bits 20 to 23 must be set to 0.