
22
MAX3421E Programming Guide
CONDETIRQ, CONDETIE
Meaning:
CONDETIRQ:
Peripheral Connect/Disconnect Interrupt Request
CONDETIE:
Peripheral Connect/Disconnect Interrupt Enable
Mode:
Host only
The SIE sets the CONDETIRQ bit to indicate that a peripheral has either plugged in or
unplugged. The CPU clears the CONDETIRQ bit by writing a 1 to it. The conditions that
activate the CONDETIRQ bit are:
•
The bus makes a transition from the J-state or K-state to 25 microseconds of SE0. This
indicates that a peripheral device has disconnected.
•
The bus makes a transition from 8 SE0 bit times to 25 microseconds of the J-state or K-
state. This indicates that a peripheral device has connected.
The CPU sets and clears the CONDETIE bit. When CONDETIE = 1 the CONDETIRQ is
enabled as a source to activate the INT pin.
Programming Notes
To detect a peripheral connect or disconnect, the CPU should first set HOST = 1 to put the
MAX3421E into host mode. It should then set DPPULLDN = 1 and DMPULLDN = 1 to
establish logic low levels for the D+ and D- signals.
To determine whether connect or disconnect occurred, the CPU reads the HSRL register and
examines the JSTATUS and KSTATUS bits. Normally these status bits update when the CPU
sets the SAMPLEBUS bit, but they also automatically update when the CONDETIRQ interrupt
asserts.