English
Language : 

UPD784044 Datasheet, PDF (44/90 Pages) NEC – 16-BIT SINGLE-CHIP MICROCONTROLLER
µPD784044(A), 784046(A)
8.4 Macro Service
The µPD784046(A) has a total of seven types of macro service. Each macro service is outlined below.
(1) Counter mode: EVTCNT
• Operation (a) Increments or decrements an 8-bit macro service counter (MSC).
(b) A vectored interrupt request is generated when the value of MSC reaches 0.
MSC
+1 / _1
• Application example: Event counter, measurement of number of times of capture
(2) Block transfer mode: BLKTRS
• Operation (a) Transfers block data between the buffer and an SFR specified by the SFR pointer
(SFR.PTR).
(b) The transfer source and destination can be an SFR or buffer. The length of the data to be
transferred can be byte or word.
(c) The number of times data is to be transferred (block size) is specified by MSC.
(d) MSC is auto-decremented (–1) each time the macro service has been executed.
(e) When the value of MSC has reached 0, a vectored interrupt request is generated.
SFR.PTR
Buffer N
_1
MSC
Buffer 1
SFR
Internal bus
• Application example: Data transfer/reception of serial interface
44