HT82A520R HOLTEK [Holtek Semiconductor Inc], HT82A520R Datasheet - Page 46

no-image

HT82A520R

Manufacturer Part Number
HT82A520R
Description
Full Speed USB 8-Bit OTP MCU with SPI
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
The USR register which is the endpoint interrupt status register, is used to indicate which endpoint is accessed and to
select the USB bus. The endpoint request flags, EP0F, EP1F, EP2F and EP3F, are used to indicate which endpoints
are accessed. If an endpoint is accessed, the related endpoint request flag will be set high and a USB interrupt will be
generated, 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 zero using the program.
Rev.1.00
Bit No.
Bit No.
4~7
0
1
2
3
4
5
6
7
0
1
2
3
RESUME
SELPS2
RMWK
SUSP
URST
Label
V33O
Label
EP0F
EP1F
EP2F
EP3F
URD
PLL
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R
R
Read only, USB suspend indication. When this bit is set to 1 (set by SIE), it indi-
cates that the USB bus has entered the suspend mode. The USB interrupt is also
triggered when this bit changes from low to high. Default value is 0 .
USB remote wake-up command. It is set by MCU to leave the USB host leaving
the suspend mode.
USB reset indication. This bit is set/cleared by the USB SIE. This bit is used to de-
tect a USB reset event on the USB bus. When this bit is set to 1 , this indicates
that a USB reset has occurred and that a USB interrupt will be initialized. Default
value is 0 . Default value is 0 .
USB resume indication. When the USB leaves the suspend mode, this bit is set to
to wake-up the MCU. In order to detect the suspend state, the MCU should set
USBCKEN and clear SUSP2 (in the UCC register) to enable the SIE detect func-
tion. RESUME will be cleared when the SUSP goes to 0 . When the MCU is de-
tecting the SUSP, the condition of RESUME (causes the MCU to wake-up)
should be noted and taken into consideration. Default value is 0 .
0/1: Turn-off/on V33O output. Default value is 0 .
0: Turn-on PLL (default), 1: turn off PLL. Default value is 0 .
When set to 1 , indicated the chip work under PS2 mode. Default value is 0 .
Default value is 0 .
USB reset signal control function definition.
1: USB reset signal will reset MCU. (Default)
0: USB reset signal cannot reset MCU.
When this bit is set to 1 (set by SIE), it indicates that endpoint 0 has been ac-
cessed and a USB interrupt will occur. When the interrupt has been serviced, this
bit should be cleared by software. Default value is 0 .
When this bit is set to 1 (set by SIE), it indicates that endpoint 1 has been ac-
cessed and a USB interrupt will occur. When the interrupt has been serviced, this
bit should be cleared by software. Default value is 0 .
When this bit is set to 1 (set by SIE), it indicates that endpoint 2 has been ac-
cessed and a USB interrupt will occur. When the interrupt has been serviced, this
bit should be cleared by software. Default value is 0 .
When this bit is set to 1 (set by SIE), it indicates that endpoint 3 has been ac-
cessed and a USB interrupt will occur. When the interrupt has been serviced, this
bit should be cleared by software. Default value is 0 . Default value is 0 .
Unused bit, read as 0
1 (set by SIE). When the RESUME is set by SIE, an interrupt will be generated
USC Register
USR Register
46
Function
Function
HT82A520R/HT82A620R
October 23, 2009

Related parts for HT82A520R