
283
CHAPTER 16 INTERRUPT FUNCTION
User
’
s Manual U15017EJ2V0UD
Figure 16-28. Timing of Parallel Data Input
16.8.8 Macro service type C
(1) Operation
In type C macro service, data in the memory specified by the macro service channel is transferred to two SFRs,
for timer use and data use, specified by the macro service channel in response to a single interrupt request (the
SFRs can be freely selected). An 8-bit or 16-bit timer SFR can be selected.
In addition to the basic data transfers described above, the following functions can be added to type C macro
service to reduce the size of the buffer area and alleviate the burden on software.
These specifications are made by using the mode register of the macro service control word.
(a) Updating of timer macro service pointer
It is possible to choose whether the timer macro service pointer (MPT) is to be kept as it is or incremented/
decremented. The MPT is incremented or decremented in the same direction as the data macro service
pointer (MPD).
(b) Updating of data macro service pointer
It is possible to choose whether the data macro service pointer (MPD) is to be incremented or decremented.
(c) Automatic addition
The current compare register value is added to the data addressed by the timer macro service pointer (MPT),
and the result is transferred to the compare register. If automatic addition is not specified, the data addressed
by the MPT is simply transferred to the compare register.
(d) Ring control
An output data pattern of the length specified beforehand is automatically output repeatedly.
INTP2
Port 6
Data fetch (macro service)