286
CHAPTER 16 INTERRUPT FUNCTION
User
’
s Manual U15017EJ2V0UD
(2) Macro service channel configuration
There are two kinds of type C macro service channel, as shown in Figure 16-30.
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 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
0FE06H to 0FE1DH when the LOCATION 0H instruction is executed, or 0FFE06H to 0FFE1DH when the
LOCATION 0FH instruction is executed. The macro service channel is indicated by the channel pointer as shown
in Figure 16-30. In the channel pointer, the lower 8 bits of the address are written to the macro service counter
in the macro service channel.
Figure 16-30. Type C Macro Service Channel (1/2)
(a) No ring control
Note
Be sure to set bits 20 to 23 to 0.
Macro service
counter (MSC)
Timer SFR pointer (TSFRP)
(Bits 8 to 15)
(Bits 0 to 7)
(Bits 8 to 15)
(Bits 8 to 15)
(Bits 0 to 7)
(Bits 0 to 7)
(Bits 16 to 23)
Note
(Bits 16 to 23)
Note
Channel pointer
Mode register
Timer macro service
pointer (MPT)
Data macro service
pointer (MPD)
Data SFR pointer (DSFRP)
Macro service
control word
Low addresses
Macro service
channel
High addresses
TSFR
DSFR
Timer buffer area
Data buffer area
Macro service buffer address = macro service pointer