Publication No. 500-001184-000 Rev. B.0
Programming 29
3 • Programming
3.1 Introduction
Throughout this manual the 32 input channels have been listed as 1-32. In this
section the inputs are discussed on a logic level, and as such, will be referenced as
00-31.
The VMIVME-1184 can reside in short 16-bit I/O space or standard 24-bit data
space. There are 18 switches used to establish the base address of the board.
Table 3-1 lists the registers and their relative (or offset) addresses. The relative
address is added to the base address to generate the actual address for the board
ʹ
s
register. The board logic uses address lines A5 through A1 to decode the registers
listed in
Table 3-1
. The rest of the address lines used by the board are set using the
address switches. In
Chapter 2
there is a detailed explanation of how to set these
switches.
Programming the VMIVME-1184 involves setting up the IP (Interrupt processors)
and the COS logic. When the board is first powered-up or after a system reset, all
control registers are reset to their default values.
It is recommended to first set up the COS logic via the COS Select and the
Channel Interrupt Enable registers. Then use the IP Control registers to set the
IRE bits to start the interrupts. During interrupt acknowledge cycles, the IP
supplies the service routine vector to the VMEbus.
The FIFOs and the BD ID registers are read-only. The board’s read-only registers
will not respond to writes, and the data will be ignored. During a read of the
“current” Data registers, the board will sample the data received at the input (P2)
and transfer that data to the VMEbus. Most registers, can be accessed using byte,
word or longword transfers. The FIFO register, CTR_FIFO and the QUAD_CTR
can only be accessed with longword transfers.
Table 3-1 VMIVME-1184 Address Map
Relative Address
Register Name
Register Function
R/RW
$00
BD ID
Identification number (BD ID = $6700)
R
$02
CSR1
Board Control bits and Status flags Register #1
RW
$04
Current Data Register
Input channels 31 through 0 (non-debounced)
R
$08
Data FIFO Register
COS data for channels 31 through 0
R
$0C
IP CTRL Register
Interrupt processor controls
RW
$0D
IP COS Vector Register
COS/SOE Interrupt Vector
RW
$0E
IP MKR Vector Register
Marker Pulse Interrupt Vector
RW
$10
CTR FIFO Register
Counter FIFO register
R
$14
Quad_CTR
Quadrature Counter Current Value
RW
$18
COS_SEL Register 0
COS Select Register for channels 31 through 24
RW
$1A
COS_SEL Register 1
COS Select Register for channels 23 through 16
RW
$1C
COS_SEL Register 2
COS Select Register for channels 15 through 8
RW
$1E
COS_SEL Register 3
COS Select Register for channels 7 through 0
RW
$20
FIFO_CNT
Number of unread samples in the COS FIFO
R
$22
CTR_FIFO_CNT
Number of unread samples in the Quad CTR FIFO
R
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com