28 USB FUNCTION CONTROLLER (USB)
28-48
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
EPbMaxSize[9:0]
This register sets the MaxPacketSize of the endpoint EPb.
When using this endpoint for the bulk transfer, 8, 16, 32, or 64 bytes should be set.
When using this endpoint for the interrupt transfer, up to 64 bytes can be set.
If the area of the endpoint EPb is smaller than specified here, the macro does not operate normally.
EPbConfig_0 (EPb Configuration 0)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EPbConfig_0
(EPb
configuration 0)
0x300c56
(8 bits)
D7
INxOUT
1 In
0 Out
0
R/W
D6
ToggleMode
1 Always toggle
0 Normal toggle
0
R/W
D5
EnEndPoint
1 Enable endpoint
0 Disable endpoint
0
R/W
D4
–
–
–
–
0 when being read.
D3–0 EndPointNumber
[3:0]
Endpoint number
(0x1 to 0xf)
0x0 R/W
This register sets up the endpoint EPb.
Perform the setup so that combination of the EndpointNumber and the INxOUT does not overlap with those of
other endpoints.
D7
INxOUT
Sets the transfer direction of the endpoint.
D6
ToggleMode
Sets the operation mode of the toggle sequence bit. (Only for the IN transaction)
Normal toggle
- Perform the toggle only when the transaction ends normally.
Always toggle
- Always perform the toggle for every transaction.
D5
EnEndPoint
Setting this bit to 1 enables this endpoint.
When this bit is 0, access to an endpoint is neglected.
Perform the setup according to the SetConfiguration request from the host.
D4
Reserved
D[3:0]
EndPointNumber[3:0]
Sets an endpoint number between 0x1 and 0xf.
EPbConfig_1 (EPb Configuration 1)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EPbConfig_1
(EPb
configuration 1)
0x300c57
(8 bits)
D7
ISO
1 ISO
0 Non-ISO
0
R/W
D6
ISO_CRCmode
1 CRC mode
0 Normal ISO
0
R/W
D5–0 –
–
–
–
0 when being read.
This register sets up the endpoint EPb.
Perform the setup so that combination of the EndpointNumber and the INxOUT does not overlap with those of
other endpoints.
D7
ISO
Sets the isochronous mode.
D6
ISO_CRCmode
According to USB spec, a packet must be discarded when CRC error occurs in isochronous transaction.
When this bit is set, a packet with CRC error is not discarded. This bit is valid when ISO bit (D7) is set.
D[5:0]
Reserved