Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Use USB8451 to Read/write data from/to LMP91000 through I2C interface

Hello!

 

I am a new labview user. I am using USB-8451 to connect with the gas sensor interface chip LMP91000(http://www.ti.com/lit/ds/symlink/lmp91000.pdf), to read/write data from/to the chip. I am going to explain my few questions and I wish to find someone to help, Thanks!

1. The slave address of LMP91000 shown in the datasheet is 100 1000, 7 bits long, and then followed by a Read ('1') or Write ('0') bit. So here comes the first question, when I want to read from one register in LMP91000, what address should I give? 100 1000 1? Or just 100 1000? Do I have to send a R/~W signal in Labview? Or can the module 'NI-845x Write Read .vi' be able to know the right direction?

 

I have attached an example of writing data to MODECN register (0x12).  Here, I am writing one byte to the register to turen the TIA OFF, remaining Temperature sensor only.

 

2.I want to read temperature sensor output voltage by connect ADS1100 (http://www.ti.com/lit/ds/symlink/ads1100.pdf) to the VOUT pin of LMP91000.Its slave address is 100 1001.so the first step is to write to the MODECN register in LMP91000, and change to the TIA OFF mode by writing 0x6. Secondly, I need to change the slave address to 1001001, and read the SDA data  from ADS1100. Attached 'read from ADS1100' help me to explain my idea. I don't know whether it is correct.

 

Any misunderstanding I have made here, please feel free to tell me!

 

Thanks a million!

 

Ivy

 

Download All
0 Kudos
Message 1 of 3
(3,623 Views)

You should try searching on the LabVIEW forum on I2C. Many results.

0 Kudos
Message 2 of 3
(3,620 Views)

Thanks for your reply!

 

BR.

 

Ivy

0 Kudos
Message 3 of 3
(3,611 Views)