
2-433
The first events listed above is known as an insertion
interrupt event On an insertion interrupt event, the bay state
machine is transitioned to the Device Inserted state, the bay
status LED is set to flash green, and the ALRT output is
asserted to notify the OS of the device insertion.
The second and third events are removal interrupt events If
the DEVSTSCHG_EN flag is set, the CDP1020 will assert its
ALRT output to notify the OS of the device removal.
Regardless of the state of the DEVSTSCHG_EN bit, the
CDP1020 will always transition the bay state to Bay Empty,
clear the PWREN flag, turn of the PWREN output, and clear
the bay state request field of the associated BCER.
The last event is a remove request event When a user
presses the REMREQ button on a bay with a device
inserted, the CDP1020 will set the REMREQ_STS flag for
that bay. If the REMREQ_EN bit is set, the CDP1020 will
assert its ALRT output to notify the OS.
Figure 4 shows the output logic for the ALRT pin. As shown
in this diagram, an interrupt event can be generated by
setting an enable flag after the status bit has been set by
some hardware event. For example, the REMREQ_EN flag
is clear and a user presses the REMREQ button. The
CDP1020 will set the REMREQ_STS flag, but will not
generate an interrupt event. Now, the OS sets the
REMREQ_EN flag. As soon as this occurs, the CDP1020
will assert its ALRT output and generate a REMREQ
interrupt event.
Insertion Time Out
When a device is inserted into a bay, it will make electrical
contact with device bay connector very quickly. However, in
most systems there will need to a delay while the user
releases the device and it settles into the bay itself.
TheinsertiontimeoutfunctionoftheCDP1020allowsasystem
designer to specify a delay time that the CDP1020 will wait
before notifying the OS that a device has been inserted. This
BAY EMPTY
DEVICE
INSERTED
DEVICE
ENABLED
REMOVAL
REQUESTED
REMOVAL
ALLOWED
PRSN=1
PRSN=0
%0 YTQ
PN0
%011 -> BAY_STREQ
REMREQ = 1
%010 -> BAY_STREQ
%0 ASE
%010->
PRSN=0
PN0
%001 ->
BAY_STREQ
%100 -> BAY_STREQ
BAY_STREQ
REMREQ=1
%011->BAY_STREQ
FIGURE 9. CDP1020 BAY STATE DIAGRAM
LED:
OFF
LED:
FLASH
GREEN
LED:
SOLID
GREEN
LED:
FLASH
AMBER
LED:
OFF
NOTE: THERE IS NO
LED SOLID AMBER STATE.
CDP1020