02-09-2019 09:05 AM
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
02-11-2019
10:24 AM
- last edited on
06-10-2025
10:17 AM
by
Content Cleaner
Have a look here:
https://forums.ni.com/t5/Example-Code/I2C-Bus-Communication-Example-Using-LabVIEW-FPGA/ta-p/3996143
https://forums.ni.com/t5/LabVIEW-Robotics-Documents/I2C-Implementation-in-LabVIEW-FPGA/ta-p/3493872
https://www.ni.com/en/shop/labview/understanding-the-i2c-two-wire-bus-interface-with-ni-labview.html