6. Functional Description
16
EPSON
S1R72V17*** Technical Manual (Rev.1.6)
Table 6.7 Endpoint EP0 Control Items and Status
Item
Register/Bit
Description
Transaction direction
D_EP0Control.INxOUT
Sets the direction of transfer in the data and
status stages.
Descriptor reply enable
D_EP0Control.ReplyDescriptor
Invokes automatic descriptor response.
Descriptor reply address
D_DescAdrs_H, DescAdrs_L
Specifies the start address in FIFO of the data
to be returned by an automatic descriptor
response.
Descriptor size
D_DescSize_H, DescSize_L
Specifies the data quantity to be returned by an
automatic descriptor response.
Control protect
D_SETUP_Control.ProtectEP0
When this bit is set, the ForceNAK and
ForceSTALL bits in the EP0ControlIN and
EP0ControlOUT registers are protected against
access.
This bit is set in hardware by the LSI when a
RcvEP0SETUP status is flagged, and can be
cleared by a register access by the CPU.
Short packet transmit
enable
D_EP0ControlIN.EnShortPkt
Enables transmission of short packets less than
Max. packet size. This bit is cleared when the
IN transaction that transmitted a short packet is
completed.
Toggle sequence bit
D_EP0ControlIN.ToggleStat,
D_EP0ControlOUT.ToggleStat
Indicates the status of the toggle sequence bits.
These bits are automatically initialized by a
SETUP stage.
Toggle set
D_EP0ControlIN.ToggleSet,
D_EP0ControlOUT.ToggleSet
Sets the toggle sequence bits.
Toggle clear
D_EP0ControlIN.ToggleClr,
D_EP0ControlOUT.ToggleClr
Clears the toggle sequence bits.
Forced NAK response
D_EP0ControlIN.ForceNAK,
D_EP0ControlOUT.ForceNAK
Always responds with NAK for IN or OUT
(including PING) transactions irrespective of the
data quantity and free space in the FIFO.
STALL response
D_EP0ControlIN.ForceSTALL,
D_EP0ControlOUT.ForceSTALL
Responds with STALL for IN or OUT (including
PING) transactions.
Automatic ForceNAK set
D_EP0ControlOUT.AutoForceNAK
Sets the EP0ControlOUT.ForceNAK bit each
time an OUT transaction is completed.
SETUP receive status
USB_DeviceIntStat.RcvEP0SETUP
Indicates that a SETUP transaction has been
executed.
Transaction status
D_EP0IntStat.OUT_ShortACK,
D_EP0IntStat.IN_TranACK,
D_EP0IntStat.OUT_TranACK,
D_EP0IntStat.IN_TranNAK,
D_EP0IntStat.OUT_TranNAK,
D_EP0IntStat.IN_TranErr,
D_EP0IntStat.OUT_TranErr
Indicates the result of a transaction.
Descriptor reply data
stage end status
D_FIFO_IntStat.DescriptorCmp
Indicates that the data stage of an automatic
descriptor response has ended.