
V DMA BLOCK: HSDMA
I/O Pins of HSDMA
Table 2.1 lists the I/O pins used for HSDMA.
Table 2.1 I/O Pins of HSDMA
Pin name | I/O | Function | Function select bit |
K50/#DMAREQ0 | I | Input port / | CFK50(D0)/K5 function select register(0x402C0) |
K51/#DMAREQ1 | I | Input port / | CFK51(D1)/K5 function select register(0x402C0) |
K53/#DMAREQ2 | I | Input port / | CFK53(D3)/K5 function select register(0x402C0) |
K54/#DMAREQ3 | I | Input port / | CFK54(D4)/K5 function select register(0x402C0) |
P04/SIN1/ | I/O | I/O port / Serial IF Ch.1 data input / | CFEX4(D4)/Port function extension register(0x402DF) |
#DMAACK2 |
| #DMAACK2 output (Ex) |
|
P05/SOUT1/ | I/O | I/O port / Serial IF Ch.1 data output / | CFEX5(D5)/Port function extension register(0x402DF) |
#DMAEND2 |
| #DMAEND2 output (Ex) |
|
P06/#SCLK1/ | I/O | I/O port / Serial IF Ch.1 clock input/output / | CFEX6(D6)/Port function extension register(0x402DF) |
#DMAACK3 |
| #DMAACK3 output (Ex) |
|
P07/#SRDY1/ | I/O | I/O port / Serial IF Ch.1 ready input/output / | CFEX7(D7)/Port function extension register(0x402DF) |
#DMAEND3 |
| #DMAEND3 output (Ex) |
|
P15/EXCL4/ | I/O | I/O port / | CFP15(D5)/P1 function select register(0x402D4) |
#DMAEND0 |
| #DMAEND0 output (O) |
|
P16/EXCL5/ | I/O | I/O port / | CFP16(D6)/P1 function select register(0x402D4) |
#DMAEND1 |
| #DMAEND1 output (O) |
|
P32/#DMAACK0 | I/O | I/O port / #DMAACK0 output | CFP32(D2)/P3 function select register(0x402DC) |
P33/#DMAACK1 | I/O | I/O port / #DMAACK1 output | CFP33(D3)/P3 function select register(0x402DC) |
(I): Input mode, (O): Output mode, (Ex): Extended function
#DMAREQx (DMA request input pin)
This pin is used to input a DMA request signal from an external peripheral circuit. One data transfer operation is performed by this trigger (either the rising edge or the falling edge of the signal can be selected). The #DMAREQ0 to #DMAREQ3 pins correspond to channel 0 to channel 3, respectively.
In addition to this external input, software trigger or an interrupt factor can be selected for the HSDMA trigger factor using the register in the interrupt controller.
#DMAACKx (DMA acknowledge signal output pin for
This signal is output to indicate that a DMA request has been acknowledged by the DMA controller.
In
The #DMAACK0 to #DMAACK3 pins correspond to channel 0 to channel 3, respectively. This signal is not output in
#DMAENDx
This signal is output to indicate that the number of data transfer operations that is set in the control register have been completed. The #DMAEND0 to #DMAEND3 pins correspond to channel 0 to channel 3, respectively.
Method for setting HSDMA I/O pins
As shown in Table 2.1, the pins used for HSDMA are shared with input ports and I/O ports. At cold start, all of these are set as input and I/O port pins (function select register = "0"). According to the signals to be used, set the corresponding pin function select bit by writing "1". At hot start, the register retains the previous status before a reset.
The #DMAEND3, #DMAACK3, #DMAEND2 and #DMAACK2 outputs are the extended functions of the P04 to P07 ports. When using these signals, the extended function bit (CFEX[7:4]) must be set to "1".
In addition, setup of the #DMAEND0 pin or #DMAEND1 pin further requires setting the I/O port's I/O control bit IOC15 (D5) or IOC16 (D6) / P1 I/O control register (0x402D6) by writing "1" in order to direct the pin for output. If this pin is directed for input, it functions as a
EPSON | S1C33L03 FUNCTION PART |