
iXPeRiPheRaLMoDuLes7(usB):usBFunCtionContRoLLeR(usB)
iX-1-4
ePson
s1C33L17teChniCaLManuaL
iX.1.3.3settingtheitCandhsDMaControllers
The USB function controller supports data transfer using the HSDMA (High-Speed DMA) function. Therefore, the
ITC and the HSDMA (Ch.1) must be set up before starting USB data transfer. This section describes how the ITC
and the HSDMA control registers are set up. Refer to “III.2 Interrupt Controller (ITC)” and “II.1 High-Speed DMA
(HSDMA)” for details of the ITC and the HSDMA, respectively.
1.settingthesignalsusedforDMatransfer
The USB controller has the following pads used for DMA data transfer and they are connected to the
corresponding SRAMC/ITC/HSDMA.
PDREQ*(DMArequestinterruptsignal)
PDACK (DMAacknowledgesignal)
PDRD
(Datareadsignal)
PDWR
(Datawritesignal)
The PDREQ signal is inverted before it is input to the ITC.
The active level of these signals can be selected using the USB register. Set the respective control bits as
follows.
PDREQ:
PDREQ_Level (D3/0x300994) = 0 (Active High)
PDACK:
PDACK_Level (D2/0x300994) = 0 (Active High)
PDRD, PDWR: PDRDWR_Level (D1/0x300994) = 0 (Active High)
2.settingtheitC
DMarequest(PDReQ)
The PDREQ signal used for a DMA request is input to the port 9 input interrupt (FPT9) system. The port 9
input interrupt circuit is configured by selecting a port (signal) to be used for generating an interrupt from P91,
PDREQ, P81, and P71. When using the DMA request/interrupt by PDREQ, set SPT9[1:0] (D[3:2]/0x3003C4)
to 10 to select PDREQ. This setting enables the PDREQ signal to be sent to the ITC as the port 9 input interrupt
signal and it will be used as a trigger for HSDMA Ch.1. Furthermore, SPPT9 (D1/0x3003C6) for selecting
a polarity of the FPT9 input signal should be set to 0 (low level or falling edge) since the PDREQ signal is
inverted before input to the ITC.
The interrupt control bits (cause-of-interrupt flag, interrupt enable register, IDMA request register, interrupt
priority register) do not affect this invocation.
usBinterrupt(int_usB)
The USB interrupt signal (INT_USB) is input to the port 10 input interrupt (FPT10) system. The port 10
input interrupt circuit is configured by selecting a port (signal) to be used for generating an interrupt from
P92, INT_USB, P82, and P72. When using the DMA request/interrupt by INT_USB, set SPTA[1:0] (D[5:4]/
0x3003C4) to 10 to select INT_USB. This setting enables the INT_USB signal to be sent to the ITC as the port
10 input interrupt signal for requesting an interrupt. Set SEPTA (D2/0x3003C7) = 0 and SPPTA (D2/0x3003C6)
= 1 to select the detection mode and polarity of the FPT10 input signal to high level.