
HOSCSTEN
Meaning:
Host Oscillator Start Enable. This applies when the MAX3420E is in the power-
down mode (PWRDOWN=1).
Location:
USBCTL.7
Set:
The CPU sets this bit to start the on-chip oscillator when the USB DPLUS signal
makes a 1-0 transition (host resume signaling).
Clear:
The CPU clears this bit to keep the chip in the low power state (inhibit the
oscillator from starting) when the USB host resumes bus signaling.
POR:
HOSCSTEN=0
Chip Reset:
No change
Bus Reset:
No change
Pwr Down:
Read-write
Programming Notes:
Once the CPU has put the MAX3420E into the power-down state (PWRDOWN=1, page 55),
there are three ways to restart the MAX3420E oscillator:
1. The SPI master sets PWRDOWN=0 (this is also achieved by a chip reset).
2. The SPI master sets SIGRESUME=1 (page 58).
3. The USB host resumes bus activity. The MAX3420E detects this as a low level
on the DPLUS data line while in low power mode (oscillator is off).
The HOSCSTEN bit deals with a special case of item 3, when the MAX3420E is designed into a
self-powered peripheral. Suppose a user plugs a self-powered peripheral which is in power-down
mode into a PC that is turned off. The logic low on DPLUS (due to the DPLUS pulldown resistor
in the host PC’s root hub) looks just like the USB RESUME signal, which would normally
restart the oscillator and wake up the chip. But in this situation the chip should not power on or
power its DPLUS resistor until the PC turns on V
BUS
to activate its USB ports.
Therefore in a self-powered system, to enter USB suspend the CPU should set PWRDOWN=1
and HOSCSTEN=0. This enters the power-down state but inhibits the 1-0 transition on the
DPLUS line as a way to wake up the chip.
An easy way for a self-powered peripheral to detect that the host PC is powered and has turned
on VBUS is to set the GPXB-A pins (page 36) to 01. This connects the V
BUS
comparator to the
GPX output pin. The GPX pin can then serve as a direct V
BUS
detect pin for the CPU. While
disconnected, the CPU should set CONNECT=0 (page 5), and then set it to 1 only after it senses
a valid USB connection.
37