HT82M9AEE/HT82M9AAE
Rev. 1.20
24
August 13, 2007
Therearesometimingconstrainsandusagesillustratedhere.BysettingtheMISCregister,theMCUcanperformread-
ing,writingandclearingactions.TherearesomeexamplesshowninthefollowingtableforendpointFIFOreading,writ-
ing and clearing.
Actions
MISC Setting Flow and Status
Read FIFO0 sequence
00H
and check if not ready (01H)
01H
delay of 2 s, check 41H
read* from FIFO0 register
02H
03H
Write FIFO1 sequence
0AH
check if not ready (0BH)
0BH
delay of 2 s, check 4BH
write* to FIFO1 register and
09H
08H
Check whether FIFO0 can be read or not
00H
01H
delay of 2 s, check 41H (if ready) or 01H (if not ready)
00H
CheckwhetherFIFO1canbewrittentoornot
0AH
0BH
delay of 2 s, check 4BH (if ready) or 0BH (if not ready)
0AH
Write 0-sized packet sequence to FIFO 0
02H
03H
delay of 2 s, check 43H
01H
00H
Note: *: There are 2 s gap existing between 2 reading actions or between 2 writing actions
Register Name
R/W
Register Address
Bit7~Bit0
FIFO 0
R/W
01001000B
Data7~Data0
FIFO 1
R/W
01001001B
Data7~Data0
FIFO 2
R/W
01001010B
Data7~Data0
FIFO Register Address Table
USB Active Pipe Timing
TheUSBactivepipeaccessedbythehostcannotbeusedbytheMCUsimultaneously.Whenthehostfinishesitswork,
the signal, a USB_INT will be produced to tell the MCU that the pipe can be used and the acted pipe No. will be shown
in the signal, ACT_PIPE as well. The timing is illustrated in the figure below.
USB Active Pipe Timing
- B
B
" (
# (
Suspend Wake-Up and Remote Wake-Up
If there is no signal on the USB bus for over 3ms, the
HT82M9AEE/HT82M9AAE will go into a suspend
mode. The Suspend line (bit 0 of the USC) will be set to
1 and a USB interrupt is triggered to indicate that the
HT82M9AEE/HT82M9AAE should jump to the suspend
state to meet the 500 A USB suspend current spec.
In order to meet the 500 A suspend current, the pro-
grammer should disable the USB clock by clearing the
USBCKEN (bit3 of the SCC) to 0 . The suspend cur-
rent is 400 A.
When the resume signal is sent out by the host, the
HT82M9AEE/HT82M9AAE will wake-up the MCU by
USB interrupt and the Resume line (bit 3 of the USC) is
set. In order to make the HT82M9AEE/HT82M9AAE
function properly, the programmer must set the
USBCKEN (bit 3 of the SCC) to 1 and clear the SUSP2
(bit4 of the SCC). Since the Resume signal will be
cleared before the Idle signal is sent out by the host and
the Suspend line (bit 0 of the USC) is going to 0 . So
when the MCU is detecting the Suspend line (bit0 of the
USC), the Resume line should be remembered and
taken into consideration.
After finishing the resume signal, the suspend line will
go inactive and a USB interrupt is triggered. The follow-
ing is the timing diagram:
Thedevicewithremotewake-upfunctioncanwake-upthe
USBHostbysendingawake-uppulsethroughRMWK(bit
1ofUSC).OncetheUSBHostreceivethewake-upsignal
- (
"
(
,
- B