LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use i2c on FPGA?

ADS1115 - 16bit ADC 860SPS


I want to use i2c on the FPGA chip on the myRio-1900.
Can anyone help me with a start code?

 

i2c address is 0x48
To set ADS config send command 0x01 0xC1 0x86 (AIN0+GND, 6.144v, PGA 1)
To read from ADS send command 0x00 then read Qty 2 8bit data(16bit total).

 

AIN0 + GND: 1 100 "000" 1 "100" 0 0 1 "10" = C1 86
AIN1 + GND: 1 101 "000" 1 "100" 0 0 1 "10" = D1 86
AIN2 + GND: 1 110 "000" 1 "100" 0 0 1 "10" = E1 86
AIN3 + GND: 1 111 "000" 1 "100" 0 0 1 "10" = F1 86

kls
0 Kudos
Message 1 of 2
(2,148 Views)