Controlling the pci-to-local interrupt, Dpsoh, 5hvhw dqg 5xq &rppdqg 5rxwlqhv – Interphase Tech 4538 User Manual
Page 110: 3&, wr /rfdo ,qwhuuxsw 5rxwlqhv )urp wkh 3&, 6lgh
Controlling the PCI-to-Local Interrupt
88
Interphase Corporation
For a normal use, the card should be reset by the PCI host (if needed) using only the
–SRESET signal. The –HRESET signal is used for special cases, such as FLASH memory
re-programming through PCI.
is an example of C code routines to reset and
run the board from the PCI side.
Example 4-1. Reset and Run Command Routines
ÆqrsvrÃUfCS@T@UÃÃÃÃÃÃÃÃ Ã97#Ãp
yÃDIU!ГhГГs
ГCS@T@U
ÆqrsvrÃUfTS@T@UÃÃÃÃÃÃÃÃ!Ã97$Ãp
yÃDIU"ГhГГs
ГTS@T@U
vqÃSrr8h
qÃvq
SrtX vr"!ÃUfD@SÃSrtSrhq"!ÃUfD@SÃÃUfTS@T@U0
vqÃS8h
qÃvq
SrtX vr"!ÃUfDTSÃUfCS@T@UÃÃUfTS@T@U0
Controlling the PCI-to-Local Interrupt
The PowerSpan Interrupt pin –INT0 is used to control the PCI-to-Local interrupt (renamed
ATN in the software examples: “Attention to the PowerQUICC II” ). It is associated by
convention with doorbell register 2. The PowerSpan Interrupt Map registers must have
been previously correctly initialized. This interrupt controls the –IRQ1/DP1/–EXT_BG2
input pin of the PowerQUICC II.
is an example of C code routines to set and reset the PCI-to-Local interrupt
and to read the status of this interrupt from the PCI side.
Example 4-2. PCI to Local Interrupt Routines (From the PCI Side)
ÆqrsvrÃUf6UIÃÃÃÃÃÃÃÃÃÃÃÃ#ГГГГГ97!Гp
yÃDIUГhГГs
Г6UI
vqÃTr6Ãvq
SrtX vr"!ÃUfD@SÃUf6UI0
vtrqÃpuh
Ã6ThrÃvq
r ÃvtrqÃpuh ÃSrtSrhq"!ÃUfDTSÃÉÃUf6UI4Г Г)ГГ0