
HT48RB8
Rev. 1.30
19
February 10, 2003
Suspend Wake-Up Remote Wake-Up
If there is no signal on signal bus is over 3ms, the
HT48RB8 will go into suspend mode . The Suspend line
(bit 0 of USC) will be set to 1 and a USB interrupt is trig-
gered to indicate the HT48RB8 should jump to suspend
state to meet the 500 A USB suspend current spec.
In order to meet the 500 A suspend current, the firm-
ware should disable the USB clock by clear the
USBCKEN (bit3 of the SCC) to 0 . The suspend cur-
rent is about 400 A.
Also the user can further decrease the suspend current
to 250 A by set the SUSP2 (bit4 of the SCC). But if the
SUSP2 is set, the user make sure cannot enable the
LVR OPT option, otherwise the HT48RB8 will be reset.
When the resume signal is sent out by the host, the
HT48RB8 will wake up the by USB interrupt and the Re-
sume line (bit 3 of USC) is set. In order to make
HT48RB8 work properly, the firmware must set the
USBCKEN (bit 3 of 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 Sus-
pend line (bit 0 of USC) is going to 0 . So when the
MCU is detecting the Suspend line (bit0 of USC), the
Resume line should be remembered and token into con-
sideration.
After finishing the resume signal, the suspend line will
go inactive and a USB interrupt is triggered. The follow-
ing is the timing diagram
The device with remote wake up function can wake-up
the USB Host by sending a wake-up pulse through
RMWK (bit 1 of USC). Once the USB Host receive the
wake-up signal from HT48RB8. it will send a Resume
signal to device. The timing as follow:
To Configure the ADC Block
The HT48RB8 has built-in a 8-bit A/D converter with 6
channels (PB0~PB5). In order to make the A/D con-
verter more flexibility, there are two mode: External Ref-
erence voltage and Internal Reference voltage. It can
easy to configure by setting the ADREF (bit 6 of USR).
For External Reference voltage, the reference voltage
of the A/D converter comes from external PB6/VRL and
PB7/VRH pins. Otherwise, the reference voltage is
coming from the VDD and VSS of MCU.
PB0~PB5 is the 6-channels input of the A/D converter, it
can easy to define which channel is converting by con-
figuring ACS2~ACS0 (bit 2~0 of ADSC). Also there are
four converter clock source to be selected by setting
ADCS1 (bit 4 of ADSC), ADCS0 ( bit 3 of ADSC).
Once the ADON (bit 6 of ADSC) is set and send the start
pulse through START (bit 5 of ADSC). The A/D con-
verter will be in operation. There are EOCB (bit 7 of
ADSC) to indicate whether the A/D converter is busy or
not. The EOCB is clear when the conversion is com-
pleted. The user can read the converter data by reading
the register ADR. In order to meet 500uA suspend cur-
rent spec. . The user should disable the A/D by clearing
ADON before jump to suspend mode.
/ (
!
(
,
/ G
/ (
!
(
,
/ G
+
4 4 0
!
4 ( (
/ (
#