VXI Technology, Inc.
38 VM4016 Programming
BRACKETING A VOLTAGE
In this example, an input voltage level will be bracketed for an over or under-voltage error
condition. The input voltage of 5.0 V will be monitored for an over-voltage of 5.25 V and an
under-voltage of 4.75 V. The error condition must be true for longer than 750 µs. An interrupt
will be generated if either of these conditions occur. Channel 1 will use for an over-voltage and
Channel 2 for an under-voltage. Channel 1 and Channel 2 positive (+) sides will be tied together
externally. Channel 1 and Channel 2 negative (-) sides will be grounded. The output interrupt
will not be latched but will be pulsed.
COMMANDS DESCRIPTION
INP:RANG 10,(@1,2) Selects ±10 Volts as the input range for Channel 1
and 2.
INP:DEB 75e-5 Sets the debounce time limit to 750
µ
s.
INP:MASK 1,(@1,2) Enables Channel 1or 2 to generate an interrupt.
INP:MASK 0,(@3:16) Disables Channels 3 through 16 from generating an
interrupt.
INP:POL NORM,(@1) Selects Channel 1 to generate an interrupt when
Channel 1 is greater than the offset voltage.
INP:POL INV,(@2) Selects Channel 2 to generate an interrupt when
Channel 2 is less than the offset voltage.
INP:OFFS +5.25,(@1) Selects +5.25 volts as the offset (reference) voltage
for Channel 1.
INP:OFFS +4.75,(@2) Selects +4.75 volts as the offset (reference) voltage
for Channel 2.
OUTP:POL:EXT:INT NORM Sets the external interrupt output to be active high.
Figure 3-2 and the explanation that follows illustrates what is occurring during this example.