28 USB FUNCTION CONTROLLER (USB)
28-42
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
EP0ControlOUT (EP0 Control OUT)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EP0ControlOUT
(EP0 control
OUT)
0x300c3b
(8 bits)
D7
AutoForceNAK
1 Auto force NAK
0 Do nothing
0
R/W
D6–5 –
–
–
–
0 when being read.
D4
ToggleStat
Toggle sequence bit
0
R
D3
ToggleSet
1 Set toggle sequence bit
0 Do nothing
0
W 0 when being read.
D2
ToggleClr
1 Clear toggle sequence bit 0 Do nothing
0
W
D1
ForceNAK
1 Force NAK
0 Do nothing
0
R/W
D0
ForceSTALL
1 Force STALL
0 Do nothing
0
R/W
This register sets the operations related to the OUT transaction of the endpoint EP0 and displays their status.
D7
AutoForceNAK
Sets the ForceNAK bit of this register to 1 when the OUT transaction of the endpoint EP0 completes
normally.
D[6:5]
Reserved
D4
ToggleStat
Shows the status of the toggle sequence bit in the OUT transaction of the endpoint EP0.
D3
ToggleSet
Sets the toggle sequence bit in the OUT transaction of the endpoint EP0, to 1.
D2
ToggleClr
Sets the toggle sequence bit in the OUT transaction of the endpoint EP0, to 0 (clear).
D1
ForceNAK
If this bit is set to 1, the NAK response is done for the OUT transaction of the endpoint EP0, regardless
of the FIFO space capacity.
When the RcvEP0SETUP bit of the MainIntStat register is set to 1 after completion of the setup stage,
this bit is set to 1, and this bit cannot be set to 0 (to be cleared) as long as the RcvEP0SETUP bit is 1.
When a transaction has been being done for a certain period of time, the setting of this bit will be en-
abled from the next transaction.
D0
ForceSTALL
If this bit is set to 1, the STALL response is done for the OUT transaction of the endpoint EP0. This bit
has a priority over the setting of the ForceNAK bit.
When the RcvEP0SETUP bit of the MainIntStat register is set to 1 after completion of the setup stage,
this bit is set to 0 (to be cleared), and this bit cannot be set to 1 as long as the RcvEP0SETUP bit is 1.
When a transaction has been being done for a certain period of time, the setting of this bit will be en-
abled from the next transaction.
EP0MaxSize (EP0 Max Packet Size)
Register name Address
Bit
Name
Setting
Init. R/W
Remarks
EP0MaxSize
(EP0 max
packet size)
0x300c3f
(8 bits)
D7
–
–
–
–
0 when being read.
D6–3 EP0MaxSize[6:3]
Endpoint EP0 max packet size
0x1 R/W
D2–0 –
–
–
–
0 when being read.
D7
Reserved
D[6:3]
EP0MaxSize[6:3]
This register sets the MaxPacketSize of the endpoint EP0.
The size of this endpoint can be set to 8, 16, 32 or 64 bytes.
D[2:0]
Reserved