Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

i2c communication procedure

i am using USb 8452 module for i2c communication in between the LDC 1612 module(slave)and USB 8452 (master).

How to configure and get the data?

any idea or suggestions

0 Kudos
Message 1 of 7
(4,274 Views)

To write data, use the I2C Write.  Just put the register address with the data in the data byte array.

 

For the read, use the I2C Write-Read.  The write data will just be the register address and then read 2 bytes.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(4,249 Views)

Usually installed with any API is a set of examples that can be found in Help >> Find Examples.  These will help you get started.  But once you get a basic example on how to read and write data working, you'll want to read up on your devices manual.  It will list things like what information is in what memory addresses and will be hardware specific.

0 Kudos
Message 3 of 7
(4,235 Views)

thank you for your reply,

when i am going to write the data, it displays an error, Actually we have to configure the slave(LDC 1612 module) and then only we can read the data from slave...I have little bit confusion in it.

0 Kudos
Message 4 of 7
(4,224 Views)

when i am going to write the data, it displays an error, 


Great what is the error?

 



Actually we have to configure the slave(LDC 1612 module) and then only we can read the data from slave...I have little bit confusion in it.

Did you read the manual?  It could be that memory locations are protected, or are supposed to be read-only.  Or maybe there is a protection mode of some kind.  This sounds like a hardware specific issue.

0 Kudos
Message 5 of 7
(4,214 Views)

Error -301743 occurred at NI-845x I2C Write.vi:4470001. this is the error occured.

yes, I read that manual. in that one, they told that we have to configure our module for channel one register and configures register for Mux_config and config.How can i write the register data to it?

0 Kudos
Message 6 of 7
(4,211 Views)

@RevathiSudalaimani wrote:

Error -301743 occurred at NI-845x I2C Write.vi:4470001. this is the error occured.

yes, I read that manual. in that one, they told that we have to configure our module for channel one register and configures register for Mux_config and config.How can i write the register data to it?


Did you not read my reply above?  The register you need to write to is just put at the beginning of your data array.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(4,209 Views)