Download complete software manual (PDF-File) - esd electronics, Inc.
Download complete software manual (PDF-File) - esd electronics, Inc.
Download complete software manual (PDF-File) - esd electronics, Inc.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3. Interrupt Handling<br />
Interrupt Handling<br />
The inputs of both CIOs Z8536 or the inputs of both UPPs HD63143 can be configurated as interrupt<br />
sources on the DPIO32.<br />
The CIOs are directly connected to the local interrupt logic. The HD63143 can trigger an interrupt,<br />
because its interrupt output can be applied to a CIO input via multiplexers (see hardware <strong>manual</strong><br />
DPIO32, figure 'Assignment of Inputs and Outputs to the Controllers'). The input channels used for this<br />
are channel 16 and channel 32. If the HD63143 are to trigger interrupts, these inputs cannot be used for<br />
external signals anymore!<br />
The entries for the configuration of CIO-Z8536 interrupts and HD63143 interrupts are constructed<br />
largely independently from each other. They use, however, the same parameters for the assignment of<br />
EVENTs to the pins. Therefore, always the last entry made for this pin is valid!<br />
3.1 Setting the Interrupt Modes of the CIO Z8536 Inputs - IRQDP1<br />
This function sets the interrupt mode for the 32 inputs guided to the CIOs Z8536.<br />
Declaration:<br />
SPC IRQDP1 ENTRY (FIXED, FIXED) GLOBAL;<br />
Variable definition:<br />
DCL (irpin, irmode) FIXED;<br />
Value ranges:<br />
irpin : Number of input channel:<br />
0 ...no channel selected<br />
1...32 ...input channel of the DPIO32<br />
Attention: The interrupt mode of pins 16 and 32 can also be changed later via<br />
function IRQUP1!<br />
irmode: Interrupt mode:<br />
0 ...no interrupt<br />
1 ...interrupt at rising edge<br />
2 ...interrupt at falling edge<br />
3 ...pulse mode: interrupt at rising edge<br />
4 ...pulse mode: interrupt at falling edge<br />
5 ...pulse mode: interrupt at rising and falling edge<br />
Procedure call:<br />
CALL IRQDP1 (irpin, irmode)<br />
VME DPIO32 Software Manual Rev. 2.1 11