Avago Technologies LSI53C1010R User Manual
Page 76

2-46
Functional Description
Version 2.2
Copyright © 2000–2003 by LSI Logic Corporation. All rights reserved.
2.2.16.1 Polling and Hardware Interrupts
The external microprocessor is informed of an interrupt condition by
polling or hardware interrupts. Polling means that the microprocessor
must continually loop and read a register until it detects a bit that is set
indicating an interrupt. This method is the fastest, but it diverts CPU time
from other system tasks. The preferred method of detecting interrupts in
most systems is hardware interrupts. In this case, the LSI53C1010R
asserts the interrupt request (INTA/ or INTB/) line that interrupts the
microprocessor, causing the microprocessor to execute an interrupt
service routine. A hybrid approach uses hardware interrupts for long
waits and polling for short waits.
SCSI Function A is routed to PCI Interrupt INTA/. SCSI Function B is
normally routed to INTB/, but can be routed to INTA/ if a pull-up is
connected to MAD[4]. Refer to
Section 3.9, “MAD Bus Programming,”
for details.
2.2.16.2 Registers
The registers in the LSI53C1010R used for detecting or defining interrupts
are
Interrupt Status Zero (ISTAT0)
Interrupt Status One (ISTAT1);
SCSI Interrupt Status Zero (SIST0)
SCSI Interrupt Status One (SIST1)
;
DMA Status (DSTAT); SCSI Interrupt Enable Zero (SIEN0)
SCSI Interrupt Enable One (SIEN1)
; and
Refer to the register descriptions in
for details.
ISTAT – The ISTAT register includes the
Interrupt Status Zero (ISTAT0),
, and
registers. It is the only register that can be
accessed as a slave during the SCRIPTS operation. Therefore, it is the
register that is polled when polled interrupts are used. It is also the first
register that should be read after the INTA/ (or INTB/) pin is asserted in
association with a hardware interrupt.
The INTF (Interrupt-on-the-Fly) bit should be the first interrupt serviced.
It must be written to one in order to clear it. This interrupt must be
cleared before servicing any other interrupts indicated by SIP or DIP. Do
not attempt to read the other chip status registers if the INTF bit is set,
but SIP or DIP are not set.