DS21Q43A
22 of 60
This means that if an event occurs and a bit is set to a 1 in any of the registers, it will remain set until the
user reads that bit. The bit will be cleared when it is read and it will not be set again until the event has
occurred again or if the alarm is still present.
The user will always precede a read of the SR1, SR2, and RIR registers with a write. The byte written to
the register will inform the DS21Q43A which bits the user wishes to read and have cleared. The user will
write a byte to one of these three registers, with a 1 in the bit positions he or she wishes to read and a 0 in
the bit positions he or she does not wish to obtain the latest information. When a 1 is written to a bit
location, the read register will be updated with current value and it will be cleared. When a 0 is written to
a bit position, the read register will not be updated and the previous value will be held. A write to the
status and information registers will be immediately followed by a read of the same register. The read
result should be logically AND’ed with the mask byte that was just written and this value should be
written back into the same register to insure that bit does indeed clear. This second write step is necessary
because the alarms and events in the status registers occur asynchronously in respect to their access via
the parallel port. This write-read-write scheme allows an external microcontroller or microprocessor to
individually poll certain bits without disturbing the other bits in the register. This operation is key in
controlling the DS21Q43A with higher-order software languages.
The SSR register operates differently than the other three. It is a read only register and it reports the
status of the synchronizer in real time. This register is not latched and it is not necessary to precede a read
of this register with a write.
The SR1 and SR2 registers have the unique ability to initiate a hardware interrupt via the INT pin. All
four of the framers share the INT output. Each of the alarms and events in the SR1 and SR2 can be either
masked or unmasked from the interrupt pins via the Interrupt Mask Register 1 (IMR1) and Interrupt Mask
Register 2 (IMR2) respectively. The user can determine which framer has active interrupts by polling the
Interrupt Status Register (ISR).
ISR: INTERRUPT STATUS REGISTER (see Table 1-6, Note 2)
(MSB)
(LSB)
F3SR2
F3SR1
F2SR2
F2SR1
F1SR2
F1SR1
F0SR2
F0SR1
SYMBOL
POSITION
NAME AND DESCRIPTION
F3SR2
ISR.7
Status of Interrupt for SR2 in Framer 3. 1=interrupt active.
F3SR1
ISR.6
Status of Interrupt for SR1 in Framer 3. 1=interrupt active.
F2SR2
ISR.5
Status of Interrupt for SR2 in Framer 2. 1=interrupt active.
F2SR1
ISR.4
Status of Interrupt for SR1 in Framer 2. 1=interrupt active.
F1SR2
ISR.3
Status of Interrupt for SR2 in Framer 1. 1=interrupt active.
F1SR1
ISR.2
Status of Interrupt for SR1 in Framer 1. 1=interrupt active.
F0SR2
ISR.1
Status of Interrupt for SR2 in Framer 0. 1=interrupt active.
F0SR1
ISR.0
Status of Interrupt for SR1 in Framer 0. 1=interrupt active.