Rev. 1.10
114
November 26, 2019
Rev. 1.10
115
November 26, 2019
HT68FB240
USB Low Speed Flash MCU
Bit 2
OUT:
USB OUT token indicator
0: low
1: high
This bit is used to indicate the OUT token (except the OUT zero length token) has
been received. The firmware clears this bit after the OUT data has been read. Also, this
bit will be cleared by SIE after the next valid SETUP token is received.
Bit 1
ERR:
FIFO accessed error indicator
0: no error
1: error
This bit is used to indicate that some errors have occurred when the FIFO is accessed.
This bit is set by SIE and should be cleared by firmware. This bit is used for all
endpoint.
Bit 0
ASET:
device address updated method control bit
0: update address after an written address to the AWR register
1: update address after PC host read out data
This bit is used to configure the SIE to automatically change the device address by the
value stored in the AWR register. When this bit is set to "1" by firmware, the SIE will
update the device address by the value stored in the AWR register after the PC host has
successfully read the data from he device by an IN operation. Otherwise, when this bit
is cleared to"0", the SIE will update the device address immediately after an address
is written to the AWR register. So, in order to work properly, the firmware has to clear
this bit after a next valid SETUP token is received.
MISC Register
Bit
7
6
5
4
3
2
1
0
Name
LEN0
READY SETCMD
—
—
CLEAR
TX
REQUEST
R/W
R
R
R/W
—
—
R/W
R/W
R/W
POR
x
x
x
—
—
x
x
x
"x" unknown
Bit 7
LEN0:
0-sized packet indication flag
0: not 0-sized packet
1: 0-sized packet
This bit is used to show that the host sent a 0-sized packet to the MCU. This bit must
be cleared by a read action to the corresponding FIFO.
Bit 6
READY:
Desired FIFO ready indication flag
0: not ready
1: ready
Bit 5
SETCMD:
Setup command indication flag
0: not setup command
1: setup command
This bit is used to show that the data in the FIFO is a setup command. This bit is set by
Hardware and cleared by Firmware.
Bit 4~3 U
nimplemented, read as "0"
Bit 2
CLEAR:
Clear FIFO function control bit
0: disable
1: enable
MCU requests to clear the FIFO, even if the FIFO is not ready. After clearing the
FIFO, the USB interface will send force_tx_err to tell the Host that data under-run if
the Host wants to read data.