Rev. 1.1E
Manual ME-5001
Programming
Page 28
Meilhaus Electronic
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 falling edges are assigned to the bit b7…0, while the bits for the rising
edges are assigned to the bits b23…16.
Diagram 10: Bit-pattern change
Example
(see diagram 10):
By writing the value 00800004Hex as a mask value (see parameter
<iIrqArg>
of the function
meIOIrqStart()
), bit 2 is monitored for a fal-
ling 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 b23
returns "1". Any edges that might arrive at pins labelled with an "X" are
ignored. Only the change in state of a pin whose edge is set to "1" in the
parameter
<iIrqArg>
can issue an interrupt.
The interrupt event is evaluated with the function
meIOIrqWait()
. We
recommend using what is known as the "extended format" to obtain
detailed information about the triggering edge.
Mask value
(32 bit)
IRQ
status value
(32 bit)
Digital port (8 bit)
DIO_7
2
0
x
x
x
x
x
x
0 0 0 0 0 0
0
0
1 0 0 0 0 0 0 0
0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0
b23
b7..0
b23..16
Содержание ME-5000 series
Страница 10: ...Rev 1 1E Manual ME 5001 Introduction Page 10 Meilhaus Electronic...
Страница 13: ...Manual ME 5001 Rev 1 1E Meilhaus Electronic Page 13 Initial Operation Diagram 1 Fitting the plug on boards...
Страница 14: ...Rev 1 1E Manual ME 5001 Initial Operation Page 14 Meilhaus Electronic...
Страница 38: ...Rev 1 1E Manual ME 5001 Index Page 38 Meilhaus Electronic...