LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ni8452 CONENCTION WITH MULTIPLE SLAVE

Solved!
Go to solution
Hello I am using NI8452 to communicate with Gyro and accelerometer (XL) using I2C. I have successfully read one sensor data at one time.i.e, gyro or XL. I was wondering if i can get both the senors data at the sometime? Sine both the gyro and XL will share the SDA and SCL line but I have no idea how i will configure two slave addresses using NI8452 I2c configuration node. The gyro and XL have different slave addresses gyro slave address = 0x68 XL slave address= 0x18 Any help would be highly appreciated Thanks
0 Kudos
Message 1 of 4
(1,982 Views)

Hi fpk.

Please refer to this url http://www.ni.com/tutorial/5767/en/

I believe you already made sure multi-slave wiring. If you have a ploblem with wiring you should see the figure 3-6 in this url http://www.ni.com/pdf/manuals/371746c.pdf 

Typically I2C frame has slave address bits. so you should set the address and address size using ni 845x configuration property node.

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

Thank you cjh9162

I have checked the manual and tutorial, which was quite helpful. 

As mentioned in the tutorial for multiple slaves have to set the CS bit.

I don't know how to set the chip bits in I2C configuration property node. I couldn't find any option.

0 Kudos
Message 3 of 4
(1,948 Views)
Solution
Accepted by topic author fpk

Hi fpk.

There is no CS property. Because the slave address is a combination of control code bits and the CS. Please refer to the addressing structure in this url https://en.wikipedia.org/wiki/I%C2%B2C

NI tutorial is using '1010' MSB for example. This control code means "Storage memory, real-time clock" typically. And if your chip has '010' address. You need to input 0x52(0b 101 0010) with slave address.  

0 Kudos
Message 4 of 4
(1,939 Views)