Creating and Configuring the NI 845x Interface
- Updated2024-07-17
- 3 minute(s) read
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.
- Open the Hardware Configuration tab of the Semiconductor Device Control Add-On large panel.
- Enter a name for the interface, select NI 845x from the Type drop-down menu, and click Add Interface.
-
Select the new interface and configure the following hardware settings for the
interface.
- Select the VISA resource name of the USB-8451 or USB-8452 in the system.
- Select the Model indicator to display.
- 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.
- Click Conf I/F to open the Hardware Configuration tab of the large panel.
- Select the NI 845x interface that you want to add a protocol to and click Add Function.
- 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.
- Select the new protocol in the list to display the configuration options.
-
Configure the pin settings for the protocol.
- Enter the I2C 7-bit or 10-bit slave address in the Slave Address input.
- Select the size of the slave address from the Address Size drop-down menu.
- Enter the clock frequency in the Clock Rate (kHz) input. The clock frequency value must be between 32 kHz and 250 kHz.
- Select the I2C pullup resistor type from the I2C Pullup Resistor drop-down menu.
- Select the starting point for the address and data from the Bit Order drop-down menu.
- 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.
- Click Conf I/F to open the Hardware Configuration tab of the large panel.
- Select the NI 845x interface that you want to add a protocol to and click Add Function.
- 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.
- Select the new protocol in the list to display configuration options.
-
Configure the general settings for the protocol.
- Set the value for the chip select pin using the Chip Select drop-down menu.
- Enter the clock frequency in the Clock Rate (kHz) input.
- Select the SPI mode using the Mode drop-down menu.
-
Configure the command settings for the protocol.
- Select whether to add the read/write bit to SPI transactions using the Encode Command toggle.
- Enter the bit value to encode in the read command using the Read Command input.
- Enter the bit value to encode in the write command using the Write Command input.
- 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.
-
Configure the data order settings for the protocol.
- Select the starting point for the address and data from the Bit Order drop-down menu.
- 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.
- Click Conf I/F to open the Hardware Configuration tab of the large panel.
- Select the NI 845x interface that you want to add a protocol to and click Add Function.
- Select Channel from the Choose Function list, and select DIO from the list of channels. Enter the name of the channel, and click Add.
- Select the new channel in the list to display the configuration options.
- Specify whether each DIO pin is an input or an output using the DIO Direction drop-down menus.
- Configure the driver for Push-Pull or Open-Drain using the Driver Type drop-down menu.