Creating and Configuring the NI 845x Interface

Before you begin this procedure, launch the Semiconductor Device Control Add-On and open your project in a large panel.

Complete the following steps to create and configure an NI 845x interface.

  1. Open the Hardware Configuration tab of the Semiconductor Device Control Add-On large panel.
  2. Enter a name for the interface, select NI 845x from the Type drop-down menu, and click Add Interface.
  3. Select the new interface and configure the following hardware settings for the interface.
    1. Select the VISA resource name of the USB-8451 or USB-8452 in the system.
    2. Select the Model indicator to display.
    3. Choose the operating voltage level from the IO Voltage Level drop-down menu.

Configuring an I2C Master Protocol

Before you begin this procedure, open your Semiconductor Device Control Add-On project in a large panel and create an NI 845x interface.

Complete the following steps to configure an I2C master protocol for an NI 845x interface.

  1. Click Conf I/F to open the Hardware Configuration tab of the large panel.
  2. Select the NI 845x interface that you want to add a protocol to and click Add Function.
  3. Select Protocol from the Choose Function list, and select I2C Master from the list of protocols. Enter the name of the protocol, and click Add.
  4. Select the new protocol in the list to display the configuration options.
  5. Configure the pin settings for the protocol.
    1. Enter the I2C 7-bit or 10-bit slave address in the Slave Address input.
    2. Select the size of the slave address from the Address Size drop-down menu.
    3. Enter the clock frequency in the Clock Rate (kHz) input. The clock frequency value must be between 32 kHz and 250 kHz.
    4. Select the I2C pullup resistor type from the I2C Pullup Resistor drop-down menu.
    5. Select the starting point for the address and data from the Bit Order drop-down menu.
    6. Select the byte order for the address and data from the Byte Order drop-down menu.

Configuring an SPI Master Protocol

Before you begin this procedure, open your Semiconductor Device Control Add-On project in a large panel and create an NI 845x interface.

Complete the following steps to configure an SPI master protocol for an NI 845x interface.

  1. Click Conf I/F to open the Hardware Configuration tab of the large panel.
  2. Select the NI 845x interface that you want to add a protocol to and click Add Function.
  3. Select Protocol from the Choose Function list, and select SPI Master from the list of protocols. Enter the name of the protocol, and click Add.
  4. Select the new protocol in the list to display configuration options.
  5. Configure the general settings for the protocol.
    1. Set the value for the chip select pin using the Chip Select drop-down menu.
    2. Enter the clock frequency in the Clock Rate (kHz) input.
    3. Select the SPI mode using the Mode drop-down menu.
  6. Configure the command settings for the protocol.
    1. Select whether to add the read/write bit to SPI transactions using the Encode Command toggle.
    2. Enter the bit value to encode in the read command using the Read Command input.
    3. Enter the bit value to encode in the write command using the Write Command input.
    4. Enter a numerical value in the Address Offset field. The read and write commands will use this value as a starting point when replacing address bits.
  7. Configure the data order settings for the protocol.
    1. Select the starting point for the address and data from the Bit Order drop-down menu.
    2. Select the byte order in which SPI transactions will occur from the Byte Order drop-down menu.

Configuring a DIO Channel

Before you begin this procedure, open your Semiconductor Device Control Add-On project in a large panel and create an NI 845x interface.

Complete the following steps to configure a DIO channel for an NI 845x interface.

  1. Click Conf I/F to open the Hardware Configuration tab of the large panel.
  2. Select the NI 845x interface that you want to add a protocol to and click Add Function.
  3. Select Channel from the Choose Function list, and select DIO from the list of channels. Enter the name of the channel, and click Add.
  4. Select the new channel in the list to display the configuration options.
  5. Specify whether each DIO pin is an input or an output using the DIO Direction drop-down menus.
  6. Configure the driver for Push-Pull or Open-Drain using the Driver Type drop-down menu.