Register Selection And Write Procedure; Table 5-1. Scxibus To Scxi-1160 Rear Signal Connector To Data Acquisition Board Pin Equivalences - National Instruments SCXI-1160 User Manual

16-channel single-pole double-throw (spdt) relay module
Hide thumbs Also See for SCXI-1160:
Table of Contents

Advertisement

Programming
Table 5-1. SCXIbus to SCXI-1160 Rear Signal Connector to Data Acquisition Board Pin
MOSI
SERDATIN
D*/A
DAQD*/A
INTR*
SLOT0SEL*
SPICLK
SERCLK
MISO
SERDATOUT

Register Selection and Write Procedure

1. Select the slot of the module to be written to. Initial conditions:
SERDATIN = X.
DAQD*/A = 1.
SLOT0SEL* = 1.
SERCLK = 1.
2. Clear SLOT0SEL* to 0. This deasserts all SS* lines to all modules in all chassis.
3. For each bit, starting with the MSB (bit 15), do the following:
a. Set SERDATIN = bit to be sent. These bits are the data that is written to the
Slot-Select Register.
b. Clear SERCLK to 0.
c. Set SERCLK to 1. This rising edge clocks the data. If you are using an MIO-16 board,
writing to the EXTSTROBE* register pulses EXTSTROBE* low and then high,
accomplishing steps 3b and 3c.
4. Set SLOT0SEL* to 1. This asserts the SS* line of the module whose slot number was
written to Slot 0. If you are using multiple chassis, only the appropriate slot in the chassis
whose address corresponds to the written chassis number is automatically selected. When no
communication is taking place between the data acquisition board and any modules, write
zero to the Slot-Select Register to ensure that no accidental writes occur.
SCXI-1160 User Manual
Equivalences
ADIO0
PB4
ADIO1
PB5
ADIO2
PB6
PB7
EXTSTROBE*
BDIO0
PC1
5-2
DOUT4
PB3
APB3
DOUT5
PB2
APB2
DOUT6
PB1
APB1
DOUT7
PB0
APB0
DIN6
PA0
APA0
© National Instruments Corporation
Chapter 5
DIOB3
DIOB2
DIOB1
DIOB0
DIOA0

Advertisement

Table of Contents
loading

Table of Contents