S1R72105 Technical Manual
44
EPSON
Rev.1.0
7.5.2.4 EP0 OUT Transaction Control (EP0OutControl) R/W
Sets operation to OUT Transaction.
USBIndex : 00h
Address
Register Name
Bit Symbol
Description
1Bh
EP0OutControl
7: OutForceNAK
IN Transaction Force NAK
6: OutForceSTALL
IN Transaction Force STALL
5:
0
Reserved
4:
0
Reserved
3:
0
Reserved
2: OutToggleStat
IN Transaction Toggle Status
1: OutToggleClr
IN Transaction Toggle Clear
0: OutToggleSet
IN Transaction Toggle Set
BIT7 OUT Transaction Force NAK
Setting this bit to HIGH returns NAK to IN Transaction.
When the RcvEP0SETUP bit of the MainIntStat register is set to HIGH as a result of completing the SETUP stage, this
bit is set to HIGH while the RcvEP0SETUP bit is HIGH. Therefore, the RcvEP0SETUP bit must be cleared to LOW
to clear this bit to LOW.
If the direction of transfer of data stage is IN, the data stage can be executed by clearing this bit to LOW after setting
the direction by the OUTxIN bit of the EP0Config_1 register.
If the direction of transfer of data stage is OUT, the data stage can be executed by clearing this bit to LOW after the
status stage is ready.
When there is a transaction that is being executed, setting of this bit a fixed period of time after starting transaction
becomes valid from the next transaction.
BIT6 OUT Transaction Force STALL
When this bit is set to HIGH it becomes valid, taking precedence over the setting of the INForceNAK bit.
Setting this bit to HIGH returns STALL to IN Transaction.
When the RcvEP0SETUP bit of the MainIntStat register is set to HIGH as a result of completing the SETUP stage, this
bit is set to LOW while the RcvEP0SETUP bit is HIGH. Therefore, the RcvEP0SETUP bit must be cleared to LOW
to set this bit to HIGH.
When there is a transaction that is being executed, setting of this bit a fixed period of time after starting transaction
becomes valid from the next transaction.
BIT2 OUT Transaction Toggle Status
Shows the state of Toggle Sequence bit during OUT Transaction.
It is set to 1 when SETUP Token is received.
BIT1 OUT Transaction Toggle Clear
Clears the Toggle Sequence bit during IN Transaction to 0.
BIT0 OUT Transaction Toggle Set
Sets the Toggle Sequence bit during IN Transaction to 1.