Functional groups 21
Manual ADQ-610 series Rev. 1.0
Functional groups
3.3.2.3 Interrupt modes
On demand the digital I/O port configured as input can be monitored on bit change and can
be evaluated as an interrupt event. Programming is done in the operation mode „ interrupt“.
3.3.2.3.1 Bit change
In the operation mode „bit change“ one or more input bits which should be monitored for
toggling can be masked. For each rising and falling edge, a bit mask defines which bit and which
edge should generate an interrupt. As soon as an appropriate edge at minimum one bit masked
with „1“ occurs, an interrupt is triggered (see next figure).
Digital input port
Bit mask
Bit mask
IRQ
b0
b
x
Figure 12: Bit change
Example for bit change:
•
When passing the value FFHex in the member variable
uiPortBitChangeRising
Edge
of the structure
SADQIRQEnable
in function
adqEnableIRQ()
all bits of a
port are monitored on a rising edge for example. If only single bits should be monitored
(e. g. monitoring of bit b2 on rising edge), the corresponding bit of the bit mask must be set
to „1“ (e. g.
uiPortBitChange RisingEdge
= 04Hex).
•
An interrupt is triggered as soon as a rising edge at bit b2 is detected.
•
For evaluation of the interrupt event use the member variable
uiPortBitChange
Rising Edge
resp.
uiPortBitChangeFallingEdge
of the structure
SADQIRQ
Status
in the function
adqWaitIRQ()
. You get the information which bit with which
edge (rising/falling) triggered the interrupt.
Summary of Contents for ADQ-610 cPCi
Page 1: ...Manual Rev 1 0 EN ADQ 610 cPCI Isolated 4 or 8 channel voltage output board ...
Page 22: ...22 Appendix Appendix Manual ADQ 610 series Rev 1 0 ...
Page 31: ... 31 Manual ADQ 610 series Rev 1 0 ...
Page 32: ...32 Manual ADQ 610 series Rev 1 0 ...