![VXI Technology VM1548C User Manual Download Page 33](http://html1.mh-extra.com/html/vxi-technology/vm1548c/vm1548c_user-manual_1057882033.webp)
www.vxitech.com
VM1548C Programming
33
W
RITE
/R
EAD
M
ODE
In this example, a wrap-around cable will be used to configure and transfer data from port 0,
port 1, and port 2 to port 3, port 4, and port 5. The wrap-around cable pin outs used are as defined
in Table 3-1. The data to be sent is port 0 = 01, port 1 = 23, and port 2 = 45. The IRQ* signal will
be generated from the external clock received from port 5.
COMMANDS DESCRIPTION
INP:REG:SOUR 3 EXT
Selects External clock line as the clock source for
port 3
INP:REG:POL 3 INV
Selects the inverted (falling) clock edge for port 3
INP:REG:SOUR 4 EXT
Selects External clock line as the clock source for
port 4
INP:REG:POL 4 INV
Selects the inverted (falling) clock edge for port 4
INP:REG:SOUR 5 EXT
Selects External clock line as the clock source for
port 5
INP:REG:POL 5 INV
Selects the inverted (falling) clock edge for port 5
OUTP:CLOC:ENAB 0 ON
Enables the output clock for port 0
OUTP:CLOC:SOUR 0 IMM
Selects the IMM (word serial event) to drive the
external clock for port 0
OUTP:REG:SOUR 0 IMM
Selects the IMM (word serial event) as the clock
source for port 0 I/O data buffers
OUTP:CLOC:ENAB 1 ON
Enables the output clock for port 1
OUTP:CLOC:SOUR 1 IMM
Selects the IMM (word serial event) to drive the
external clock for port 1
OUTP:REG:SOUR 1 IMM
Selects the IMM (word serial event) as the clock
source for port 1 I/O data buffers
OUTP:CLOC:ENAB 2 ON
Enables the output clock for port 1
OUTP:CLOC:SOUR 2 IMM
Selects the IMM (word serial event) to drive the
external clock for port 1
OUTP:REG:SOUR 2 IMM
Selects the IMM (word serial event) as the clock
source for port 1 I/O data buffers
SOUR:DATA:ENAB 0 ON
Configures port 0 I/O data buffers for write mode
SOUR:DATA:ENAB 1 ON
Configures port 1 I/O data buffers for write mode
SOUR:DATA:ENAB 2 ON
Configures port 2 I/O data buffers for write mode
SOUR:DATA:ENAB 3 OFF
Configures port 3 I/O data buffers for read mode
SOUR:DATA:ENAB 4 OFF
Configures port 4 I/O data buffers for read mode
SOUR:DATA:ENAB 5 OFF
Configures port 5 I/O data buffers for read mode
SOUR:DATA 0 01
Writes data “01” to port 0’s I/O data buffer
SOUR:DATA 1 23
Writes data “23” to port 1’s I/O data buffer
SOUR:DATA 2 45
Writes data “45” to port 2’s I/O data buffer
STAT:INT:ENAB EXT 5
Set the interrupt trigger source as the port 5 clock
STAT:INT:PTR ON
Set the interrupt trigger source to the positive edge
TRIG:SEQ:IMM
Generates a word serial event to transfer data and
clocks from ports 0, 1, and 2
READ? 3
Read data from port 3
READ? 4
Read data from port 4
READ? 5
Read data from port 5
See Figure 3-3 for the Write/read block diagram.