Dear TI Engineer,
i'm already succes to read the analog value 4 channel in an ADC ADS1115, the delay time arround 1.5 mS for 860 SPS.
but i want to use 16 channel (multiple ADS1115).
I try to scan the I2C address from multiple ADC(4 IC), each ADC has different address (VDD,GND,SCL,SDA).
i'm using atmega168 to scan the i2c device. The result address for VDD,GND, SDA already appear (detected) on my atmega. but for SCL address(&B10010110) cant detect or error communication.
Datasheet item 9.5.1.1 on page 21 said it's need special treatment. can you give me sample to read ADC withh ADDR connect to SCL.
this my sub routine I2c scanner with BASIC COMPILE (BASCOM).
$regfile = "m168pdef.dat" ' the used chip
$crystal = 16000000 ' frequency used
$baud = 115200 ' baud rate
Declare Sub I2c_scan
Dim B As Byte , Status As Bit
Do
Call I2c_scan
Waitms 100
Loop
End
Sub I2c_scan 'check all devices on the I2c-bus
Print "Scan start"
For B = 0 To 254 Step 2
'for all odd addresses
I2cstart 'send start
I2cwbyte B 'send address
If Err = 0 Then 'we got an ack
Print "Slave at : " ; B ; " hex : " ; Hex(b) ; " bin : " ; Bin(b)
End If
I2cstop
'free bus
Next
Print "End Scan"
End Sub
Thank You
Mansur. H