Macro Service Types; Interrupts That Can Use A Macro Service - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series

12.4.2 Macro Service Types

The macro service can be used by the 17 types of interrupts listed in Table 12-7 (of which, 15 types can use macro
services simultaneously). In addition, three modes of operation are available, and each should be selected
according to the application.
Interrupt request source
INTP0 (edge input to the pin is detected)
INTP1 (edge input to the pin is detected)
INTP2 (edge input to the pin is detected)
INTP3 (edge input to the pin is detected)
INTC00 (TM0-CR00 coincidence signal generation)
INTC01 (TM0-CR01 coincidence signal generation)
INTC10 (TM1-CR10 coincidence signal generation)
INTC11 (TM1-CR11 coincidence signal generation)
INTC21 (TM2-CR21 coincidence signal generation)
INTP4 (edge input to the pin is detected)
INTC30 (TM3-CR30 coincidence signal generation)
INTP5 (edge input to the pin is detected)
INTAD (A/D conversion end)
INTC20 (TM2-CR20 coincidence signal generation)
INTSR (asynchronous serial interface reception end)
INTST (asynchronous serial interface transmission end)
INTCSI (clock-synchronized serial interface
transmission end)
The following three types of macro services are available:
(1) Type A
Transfers 1-byte data between a special function register (SFR) and memory upon each interrupt request.
When a specified number of data transfers are performed, a vectored interrupt request is generated.
The SFR with which data is to be transferred is predetermined for each interrupt request. In addition, the
memory to be used is fixed at addresses 0FE00H through 0FEFFH in the internal RAM.
This macro service is easily specified and is usable for transfer of a small amount of data at high speed.
(2) Type B
Similarly to type A, transfers 1-byte data between an SFR and memory upon each interrupt request. When
a specified number of data transfers are performed, a vectored interrupt request is generated.
The SFR and memory between which data is to be transferred are specified by the macro service channel (the
memory is a 64K-byte area at addresses 0000H through FEFFH).
This macro service is a general-purpose version of type A. It is suitable for transfer of a large amount of data.
320
Table 12-7 Interrupts That Can Use a Macro Service
Generating unit
Edge detection
16-bit timer/counter
8-bit timer/counter 1
8-bit timer/counter 2
Edge detection
8-bit timer/counter 3
Edge detection
A/D converter
8-bit timer/counter 2
Asynchronous serial
interface
Clock-synchronized serial
interface
Macro service
Special function
type
register used for type A
A, B
CR11
A, B
CR22
A, B
TM2
B
B
B
A, B, C
CR10
A, B, C
CR11
A, B
CR21
B
A, B
CR30
B
A, B
ACDR
A, B
CR20
A, B
RxB
A, B
TxB
A, B
SIO

Advertisement

Table of Contents
loading

Table of Contents