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