NEC PD78P214 Manuale Utente

Pagina di 487
327
Chapter 12   Interrupt Functions
12
(3) Example of using the type A macro service
The following example shows how data received through an asynchronous serial interface is transferred to
a buffer area in the internal RAM.
Fig. 12-20  Asynchronous Serial Reception
12.4.6  Type B Macro Service
(1) Operation
The type B macro service transfers data between a data area in the memory specified by the macro service
channel and an SFR.
For this macro service, the direction of data transfer can be specified as either “from memory to SFR” or “from
SFR to memory.”
Data transfer is repeated as many times as previously specified in the macro service counter.  The macro
service transfers 8-bit data.
The type B macro service can be specified for all interrupt requests of the 
µPD78214 that can activate a macro
service.  For the type B macro service, the SFR pointers can specify any SFRs for data transfer sources and
destinations.
This macro service is a general-purpose version of the type A macro service.  It has a data buffer area in a 64K-
byte address space and therefore is suitable for transfer of a large amount of data.
0FEC0H
0FECFH
MSC
0F
Mode register
Channel pointer
41
CF
Internal RAM
-1
Type A:  SFR
→  memory
Internal bus
Receive buffer (RXB)
Shift register
INTSR macro service request
RXB/P30