Rev. 1.10
110
November 26, 2019
Rev. 1.10
111
November 26, 2019
HT68FB240
USB Low Speed Flash MCU
The endpoint requestflags (EP0F, EP1F and EP2F) are used to indicate which endpoints are
accessed. If an endpoint is accessed, the related endpoint request flag will be set to "1" and the
USB interrupt will occur (if the USB interrupt is enabled and the stack is not full). When the active
endpoint request flag is serviced, the endpoint request flag has to be cleared to "0" by software.
UINT Register
Bit
7
6
5
4
3
2
1
0
Name
—
EP2F
EP1F
EP0F
—
EP2EN
EP1EN
EP0EN
R/W
—
R/W
R/W
R/W
—
R/W
R/W
R/W
POR
—
0
0
0
—
0
0
0
Bit 7 U
nimplemented, read as "0"
Bit 6
EP2F:
USB endpoint2 accessed
detection
0: n
o accessed
1: accessed
Bit 5
EP1F:
USB endpoint1
accessed
detection
0: n
o accessed
1: accessed
Bit 4
EP0F:
USB endpoint0
accessed
detection
0: n
o accessed
1: accessed
Bit 3 U
nimplemented, read as "0"
Bit 2
EP2EN:
USB endpoint2 interrupt control
bit
0: disable
1: enable
Bit 1
EP1EN:
USB endpoint1 interrupt control
bit
0: disable
1: enable
Bit 0
EP0EN:
USB endpoint0 interrupt control
bit
0: disable
1: enable
USC Register
Bit
7
6
5
4
3
2
1
0
Name
URD
SELPS2
—
SELUSB RESUME
URST
RMWK
SUSP
R/W
R/W
R/W
—
R/W
R
R/W
R/W
R
POR
1
0
—
0
x
0
x
x
"x" unknown
Bit 7
URD:
USB reset signal control function definition
0: USB reset signal cannot MCU
1: USB reset signal will reset MCU
Bit 6
SELPS2:
PS2 mode select bit
0: not PS2 mode
1: PS2 mode
When the SELPS2 bit is set high, the PS2 function is selected and the pin-shared pins,
UDN/GPIO0 and UDP/GPIO1, will become the GPIO0 and GPIO1 general purpose I/O
functions which can be used to be the DATA and CLK pins for the PS2.
Bit 5 U
nimplemented, read as "0"