Chapter 5
Programming
© National Instruments Corporation
5-3
SCXI-1162 User Manual
5. If you are reading from the Data Register, you must first write to the Address Handler
address 0001 (hexadecimal):
a. Establish the desired SERDATIN level corresponding to this bit.
b. Clear SERCLK to 0.
c. Set SERCLK to 1 (clock the data). If you are using an MIO-16 board, writing to the
EXTSTROBE* register pulses EXTSTROBE* low and then high, accomplishing
steps 5b and 5c.
d. After you have written all the address bits, clear DAQD*/A to 0. This selects the Data
Register and writes the data to the MOSI line.
6. For each bit to be read from the Data Register:
a. Clear SERCLK to 0.
b. Set SERCLK to 1 (clock the data). If you are using an MIO-16 board, writing to the
EXTSTROBE* register pulses EXTSTROBE* low and then high, accomplishing
steps 5a and 5b.
c. Read the level of the SERDATOUT line.
d. After clocking the last data bit, if you do not want to read another register, write
hexadecimal address FFFF to the Address Handler to increase the noise immunity of the
module when it is in the quiescent state.
7. Pull SLOT0SEL* low to deassert the SS* line and establish conditions for writing a new slot-
select number to the Slot 0 Slot-Select Register.
8. If you are not selecting another slot, write zero to the Slot 0 Slot-Select Register. If you are
selecting another slot, repeat the procedure starting at step 3.
For a timing illustration of a Data Register read, see Figure 2-9, Data Register Read Timing
Diagram.
Note: You can always read data via the SCXIbus from an SCXI-1162 module regardless of its
jumper settings. The jumper settings only affect the configuration of the rear connector.
If you have properly configured the jumpers of the module in the chassis that is
connected to a data acquisition board, the jumper settings of other modules that are not
connected to anything via their rear connectors are irrelevant.