uPSD3212A, uPSD3212C, uPSD3212CV
78/163
Table 64. USB Interrupt Status Register (UISTA: 0E8h)Table 65. Description of the UISTA Bits76543210
SUSPND — RSTF TXD0F RXD0F TXD1F EOPF RESUMF
Bit Symbol R/W Function
7SUSPNDR/W
USB Suspend Mode Flag.
To save power, this bit should be set if a 3ms constant idle state is
detected on USB bus. Setting this bit stops the clock to the USB an d
causes the USB module to enter Suspend Mode. Software must clear
this bit after the Resume flag (RESUMF) is set while this R esume
Interrupt Flag is serviced
6 — — Reserved
5RSTFR
USB Reset Flag.
This bit is set when a valid RESET signal state is detected on the D+ and
D- lines. When the RSTE bit in the UIEN Register is set, this reset
detection will also generate an internal re set signal to reset the CPU and
other peripherals including the USB module.
4TXD0FR/W
Endpoint0 Data Transmit Flag.
This bit is set after the data stored in Endpoint 0 transmit buffers has
been sent and an ACK handshake packet from the host is received.
Once the next set of data is ready in the transmit buffers, software must
clear this flag. To enable the next data packet transmission, TX0E must
also be set. If TXD0F Bit is not cleared, a NAK handshake wi ll be
returned in the next IN transactions. RESET clears this bit.
3RXD0FR/W
Endpoint0 Data Receive Flag.
This bit is set after the USB module has received a data packet and
responded with ACK handshake packet. Software must clear this flag
after all of the received data has been read. Software must also se t
RX0E Bit to one to enable the next data packet reception. If RXD0F B it is
not cleared, a NAK handshake will be returned in the next OU T
transaction. RESET clears this bit.
2TXD1FR/W
Endpoint1 / Endpoint2 Data Transmit Flag.
This bit is shared by Endpoints 1 and Endpoints 2. It is set afte r the data
stored in the shared Endpoint 1/ Endpoint 2 transmit buffer has been sent
and an ACK handshake packet from the host is received. Once the next
set of data is ready in the transmit buffers, software must clear this flag.
To enable the next data packet transmission, TX1E must also be set. If
TXD1F Bit is not cleared, a NAK handshake will be retur ned in the next
IN transaction. RESET clears this bit.
1EOPFR/W
End of Packet Flag.
This bit is set when a valid End of Packet sequence is detected on the D+
and D-line. Software must clear this flag. RESET clears this bit.
0RESUMFR/W
Resume Flag.
This bit is set when USB bus activity is detected while the SUSPND Bit is
set.
Software must clear this flag. RESET clears this bit.