Sign Up

I2C Implementation in LabVIEW FPGA by NI - Toolkit for LabVIEW Download

Watch * 0 ↓2,328
 logo
Version1.0.0.2
ReleasedMay 19, 2016
Publisher NI
License Not Specified
LabVIEW VersionLabVIEW>=10.0
Operating System Windows, Mac, and Linux
Project links Homepage  

Description

I2C is a synchronous protocol based on a two wire bus. The I2C bus is a multi-master bus with the ability to have multiple slave devices that can all be independently controlled. All communication between a master and slave device fit into three basic sequence formats: Master-to-Slave Write, Master-Slave Read, or a combined Master-to-Slave Write with Read sequence.This is an example of an FPGA implementation for the I2C protocol that can be utilized to communicate with any I2C Slave Device.

I2C Implementation Example for LabVIEW FPGA. The I2C Host VI, I2C_Host_Top-Level.vi, is written to be used in LabVIEW Windows applications. The VI can easily be called from within a state-machine design pattern for communication with I2C slave devices. In addition this format lends itself nicely for use in TestStand sequences when the DUT has I2C chips that require testing.The top-level VI that runs on the FPGA is named ‘I2C_Core_Top-Level.vi’ in the LabVIEW project file. The VI architecture is comprised of two parallel executing while loops, the first loop runs the I2C Protocol and the second loop is for Memory Block Access for HOST communication.See the pdf file in the documentation folder for more details.


Note: This code does not deal with slave clock stretching or arbitration between Masters.

Please review the PDFs included in the documentation folder.

Release Notes

1.0.0.2 (May 19, 2016) no release notes for this version

Download Package

Versions

  Post an Idea   Post a Resource

Recent Posts