S1R72105 Technical Manual
Rev.1.0
EPSON
47
7.5.2.8 EP {r}(r=a,b,c) Config 0 (EPrConfig_0) R/W
Sets operation of Endpoint a, b, and c.
USBIndex : 01h to 03h
Address
Register Name
Bit Symbol
Description
18h EPrConfig_0
7:
EndPointNumber[3]
6: EndPointNumber[2]
Endpoint Number
5:
EndPointNumber[1]
4:
EndPointNumber[0]
3: OUTxIN
OUT x IN
2:
0
Reserved
1: JoinPortDMA
Join Port DMA
0: Really Used
Really Used
BIT7-4 Endpoint Number
Sets any Endpoint number of 1h to Fh.
BIT3 OUT x IN
Sets the direction of transfer of Endpoint.
0: IN direction
1: OUT direction
BIT1 Join Port DMA
Connects the endpoint to the port DMA.
Connects the endpoint to the port DMA.
The port DMA is connected to the endpoint that last set this bit to HIGH.
When there is no endpoint set to HIGH the port DMA is connected to Endpoint c.
Immediately after resetting, the JointPortDMA bit becomes LOW at all endpoints.
BIT0 Really Used
Setting this bit to HIGH allows to use the endpoints.
When this bit is LOW it ignores access to the endpoint.
Set in accordance with the SetConfiguration request from the host.
7.5.2.9 EP {r}(r=a,b,c) Config 1 (EPrConfig_1) R/W
Sets operation of Endpoints a, b, and c.
USBIndex : 01h to 03h
Address
Register Name
Bit Symbol
Description
19h
EPrConfig_1
7: DoubleBuf
Double Buffer
6:
0
Reserved
5:
0
Reserved
4:
0
Reserved
3:
MaxPacketSize[3]
2: MaxPacketSize[2]
Max Packet Size
1:
MaxPacketSize[1]
0:
MaxPacketSize[0]
BIT7 Double Buffer
Setting this bit to HIGH makes FIFO a double buffer, securing the area doubling the value of the size set for
MaxPacketSize.
BIT3-0 Max Packet Size
Sets MaxPacketSize of endpoint.
After setting MaxPacketSize and DoubleBuf of all endpoints, be sure to set the ALLFIFOCLR bit to HIGH.
The list corresponding to these bits is as follows:
(bit3, bit2, bit1, bit0)
0
0
0
0
: Not in active use (no area is reserved)
0 0 0 1 : 8
bytes
0 0 1 0 : 16
bytes
0 1 0 0 : 32
bytes
1 0 0 0 : 64
bytes