NEC PD78P214 Manuale Utente

Pagina di 487
320
µ
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.
Table 12-7  Interrupts That Can Use a Macro Service
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)
A, B
A, B
A, B
B
B
B
A, B, C
A, B, C
A, B
B
A, B
B
A, B
A, B
A, B
A, B
A, B
Macro service
type
Special function
register used for type A
CR11
CR22
TM2
CR10
CR11
CR21
CR30
ACDR
CR20
RxB
TxB
SIO
Interrupt request source
Generating unit
8-bit timer/counter 2
Edge detection
8-bit timer/counter 3
Edge detection
A/D converter
8-bit timer/counter 2
Edge detection
16-bit timer/counter
8-bit timer/counter 1
Asynchronous serial
interface
Clock-synchronized serial
interface
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.