42 VMIVME-1184* 32-bit Optically Isolated Change-of-State (COS) Input Board
Publication No. 500-001184-000 Rev. B.0
The board will operate in SOE mode, with a counter (using the Marker to reset the
counter) input through the front panel connector P3.
To program the interrupts, assign an interrupt level and vector for the COS and
Marker. We will assign interrupt level 4 to COS/SOE interrupts, and a interrupt
vector value of $83. Since we will be using this board in the SOE mode, with a
counter (with marker pulse) input to the front of the VMIVME-1184, we will set
the marker pulse interrupt to level 2, with an interrupt vector of $45. The board
will be set to ROFE mode.
The board in this example is addressed in A16 mode, and is jumper configured to
base address $8000.
The required writes to the VMIVME-1184 board are shown in
Table 3-18
.
After completing the previous steps, the board is ready for operation. A write of
$8A03 to CSR1 will turn off the FAIL LED and leave the board operating in SOE
mode with the counter FIFO enabled.
The board is now ready to start looking for events. Although data can be
processed at any time, the interrupt enable bits should only be set when you are
ready to handle interrupts. At this time the COS/SOE interrupt, and Marker
interrupt enable bits have to be set. One way is to write the entire byte of data
again, only this time with the enable bits set. For this example, the value to write
would be $AC. Now the board will issue interrupts as the COS logic and Marker
dictate.
3.13 VMIVME-1184 Inputs
Regardless of the wiring configuration (single-ended versus differential), only
channel “A” is used for counter modes, while both “A” and “B” are necessary for
Quadrature mode. Use of the Marker is optional. Differential wiring and
transmitter equipment (encoders) are preferred to reduce common mode noise
from noisy environments. Differential termination switch S2 should only be used
for RS-422 signaling (last device in the chain).
Table 3-18 Example Setup of the VMIVME-1184
Address
Register
Value
Task
$XXXX8002
CSR1
0x8A03
Set up CSR1
$XXXX8018
COS_SEL0
0x012C
Set monitoring conditions for Channels 31, 28, 26
and 25
$XXXX800D
IP_COS_VECT
0x83
Set COS/SOE interrupt vector
$XXXX800E
IP_MKR_VECT
0x45
Set Marker Interrupt Vector
$XXXX8024
CH_INT_ENA
0x16000000 Enable COS Interrupts (CH 28, 26 and 25)
$XXXX800C
IP_CTRL_REG
0xAC
Set level for marker and COS interrupts
Table 3-19 Input Connectivity
Minimum Connectivity Needed
Modes Supported
A+ (Single-Ended)
Counter
A+, B+ (Single-Ended)
Counter and Quadrature
A+, A- (Differential)
Counter
A+, A-, B+, B- (Differential)
Counter and Quadrature
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com