Manual ME-582x Series
Revision 0.9
4 Programming
page 27
Meilhaus Electronic
Picture 154: Interrupt options
Please observe the ME-iDS manual and the ME-iDS help file (*.chm) for
the procedure. You can open both of these documents through the “ME-
iDS Control Center” or through the Windows Start menu.
4.2.1
Bit-Pattern Change
In the bit-pattern change mode, one or more bits that are to be monitored
for a change of state can be defined (masked). A 32-bit-wide argument per
subdevice contains the mask. For each input pin both one bit for rising
edge and one bit for falling edge is available. If the state of at least one bit
masked with a "1" changes (0
→ 1 or 1 → 0), an interrupt is issued (see
picture 16 on page 27).
In what is known as the "extended format" of interrupt handling (see the
ME-iDS manual), two bits are available for the interrupt status of each pin.
One is for the rising edge, and one for the falling edge. The bits for the fall-
ing edges are assigned to the bit b
15…0, while the bits for the rising
edges are assigned to the bits b
31…16.
Picture 16: Bit-pattern change
Example
(see picture 16):
By writing the value 0x00800004 Hex as a mask value (see parameter
<iIrqArg>
of the function
meIOIrqStart())
, bit 2 is monitored for a falling
edge, and bit 7 for a rising edge. A rising edge now is to arrive at bit 7, so
that an interrupt is issued and in the interrupt status value bit b 23 returns