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

Advertising
background image

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.

Example 4-1

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

ÆqrsvrÃUfCS@T@UÃÃÃÃÃÃÃÑ Ã97#Ãp‚‡…‚y†ÃDIU!Гh†Г‚ˆ‡ƒˆ‡Гs‚…ГCS@T@U
ÆqrsvrÃUfTS@T@UÃÃÃÃÃÃÃÑ!Ã97$Ãp‚‡…‚y†ÃDIU"Гh†Г‚ˆ‡ƒˆ‡Гs‚…ГTS@T@U

‰‚vqÃSr†r‡8h…qɂvq
”

SrtX…v‡r"!ÃUfD@SÃSrtSrhq"!ÃUfD@SÕÃUfTS@T@U0

–

‰‚vqÃSˆ8h…qɂvq
”

SrtX…v‡r"!Ã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.

Example 4-2

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)

ÆqrsvrÃUf6UIÃÃÃÃÃÃÃÃÃÃÃÑ#ГГГГГ97!Гp‚‡…‚y†ÃDIUГh†Г‚ˆ‡ƒˆ‡Гs‚…Г6UI
‰‚vqÃTr‡6‡ɂvq
”

SrtX…v‡r"!ÃUfD@SÃUf6UI0

–
ˆ†vtrqÃpuh…Ã6‡T‡h‡rɂvq
”

…r‡ˆ…Ãˆ†vtrqÃpuh…ÃSrtSrhq"!ÃUfDTSÃÉÃUf6UI4Г Г)ГГ0

–

Advertising