LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Start Condition - Implementing I2C Communication Protocol in LabVIEW FPGA

I'm attempting to use the I2C FPGA code shown in the article "Implementing I2C Communication Protocol in LabVIEW FPGA" located at http://www.ni.com/white-paper/3479/en/ on a PXI-7852R.  However, the start condition logic appears to be incorrect as shown.  The I2C protocol dictates that the start condition is set by high to low transition on the Data line while the Clk is high.  However, Figure 12 of this article appears to show that the SDA line is held high for the start condition with no transition low.  It seems to me that the second sequence frame should set SDA to "False" instead of "True".  Is this an error in the document or am I missing something?

0 Kudos
Message 1 of 6
(3,386 Views)

It looks like an error.  Otherwise, it wouldn't make sense for the second frame of the sequence to set the SDA to True.  It was already set to True in the first frame.

0 Kudos
Message 2 of 6
(3,349 Views)

We too have the same query.. Please help us get enlightened on this. We still are figuring out if its a bug or that we have failed to understand some missing link in here.

0 Kudos
Message 3 of 6
(2,571 Views)

Hi there,

 

It seems the link in the original post is broken, so I can't see the context.  Was it something similar to this?  Additionally, it may be worth making a new post, as this one is a bit older, and may not get the same visibility.

Trevor H.
Technical Support Engineer
National Instruments
0 Kudos
Message 4 of 6
(2,556 Views)

No white papers called "Implementing I2C Communication Protocol in LabVIEW FPGA" anymore, but the top two results for "Implementing I2C Communication Protocol in LabVIEW FPGA" search for white papers seems relevant\related.

0 Kudos
Message 5 of 6
(2,547 Views)

I'm going to assume http://www.ni.com/white-paper/5385/en/ on Figure #10 is the closest comparison to the original post.  While both the frames are setting enable to true, it is worth noting the first sets SDA, and the second sets SCL. After this original assertion, figure #11 shows the data transfer. 

 

If this is not a comparable situation to the original post, please let me know!

Trevor H.
Technical Support Engineer
National Instruments
0 Kudos
Message 6 of 6
(2,530 Views)