From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i2c burst write

Dear Sir:

 

I had question regarding to the I2C write.

 

Q1: Can we do burst write ( write 14 bytes data ) to the slave( our IC is slave)?  and Mater is MY8451.

 

Q2: The acknowledge bit was not pull low for SDA pin after I2C master write to slave for each ninth clock .

 

Please kind advice

 

Thanks

 

Ping Chen

 

0 Kudos
Message 1 of 2
(4,813 Views)

Greetings Ping Chen.

 

If by "burst write", you mean writing consecutive bytes of data without having to resend a stop bit and address byte(s) repeatedly, then yes this is possible.  The "NI-845x I2C Write" VI accepts an array as the input for the "write data" terminal.  

 

I can not be immediately sure as to why you're not seeing the SDA line pulled low on the 9th clock.  This is the responsibility of the slave device to acknowledge that it has received the data sent. As such, it seems that something is configured wrong and your slave device is not actually receiving the data it expects.  

 

The below document details the use of the NI-8451 for I2C systems and may be beneficial for troubleshooting your system.

 

Using I2C with LabVIEW and the USB-8451

http://zone.ni.com/devzone/cda/tut/p/id/5767

 

Hope this helps!

 

Regards,

 

Michael G

Michael G.
Applications Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Self-realization: I was thinking of the immortal words of Socrates, who said, "... I drank what?"
0 Kudos
Message 2 of 2
(4,796 Views)