![Contec DIO-48DX-USB Скачать руководство пользователя страница 40](http://html1.mh-extra.com/html/contec/dio-48dx-usb/dio-48dx-usb_user-manual_2655906040.webp)
5. Function
DIO-48DX-USB
35
Interrupt Control Function
This product can use all of the input signals as interrupt request signals.
This product can generate an interrupt request signal to the PC when the input signal change from High
to Low or from Low to High.
When the digital filter (described above) is used, interrupt requests are generated by input signals that
have passed through the filter.
Disabling/enabling Interrupts
Interrupt mask bits can be used to disable or enable the individual bits for interruptions.
Once a certain bit has been interrupt-disabled, no interrupt occurs even when the corresponding input
signal changes its level.
To let interrupts occur, enable the corresponding interrupt mask bit for interruptions.
CAUTION
All of the interrupt mask bits are interrupt-disabled when the power is turned on.
Selecting the Edge of input signals, at which to generate an
interrupt
The input signal edge selection bit can be used to set the input logic for interruption bit by bit.
If you set an input signal edge selection bit to 0, an interrupt occurs when the input value to the
corresponding bit changes from 0 to 1 (at the fall of the input signal from High to Low).
If you set an input signal edge selection bit to 1, an interrupt occurs when the input value to the
corresponding bit changes from 1 to 0 (at the rise of the input signal from Low to High).
CAUTION
All of the input signal edge selection bits are set to 0 when the power is turned on.
Clearing the Interrupt Status and Interrupt Signal
Interrupt status bits are used to identify the input signal bit being used for requesting an interrupt.
When an interrupt status is input, the interrupt request signal and the interrupt status are cleared
automatically.
CAUTION
-
All of the interrupt status bits are set to 0 when the power is turned on.
-
If an interrupt mask bit has been set to disable interrupts, the interrupt status bit is not set even
when the input signal changes its level.
Содержание DIO-48DX-USB
Страница 1: ...PC HELPER Bi Directional Digital I O Unit for USB DIO 48DX USB User s Guide CONTEC CO LTD...
Страница 27: ...2 Setup 22 DIO 48DX USB...
Страница 35: ...4 Application Development 30 DIO 48DX USB...
Страница 41: ...5 Function 36 DIO 48DX USB...
Страница 45: ...6 About Hardware 40 DIO 48DX USB Block Diagram Figure 6 3 Block Diagram...