English
Language : 

UPD78361A Datasheet, PDF (44/88 Pages) NEC – 16/8-BIT SINGLE-CHIP MICROCONTROLLER
µPD78361A, 78362A
4.2 MACRO SERVICE
The µPD78362A has a total of five macro services. Each macro service is described 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 MSC reaches 0.
MSC
+1/–1
• Application example: As event counter, or to measure number of times a value is captured
(2) Block transfer mode: BLKTRS
• Operation
(a) Transfers data block between a buffer and a SFR specified by SFR pointer (SFRP).
(b) The transfer source and destination can be in SFR or buffer area. The length of the transfer data
can be specified to be byte or word.
(c) The number of times the data is to be transferred (block size) is specified by MSC.
(d) MSC is auto decremented by one each time the macro service has been executed.
(e) When MSC reaches 0, a vectored interrupt request is generated.
SFRP
Buffer N
–1
MSC
Buffer 1
SFR
Internal bus
• Application example: To transfer/receive data through serial interface
44