I understand this as "start conversion(measurement)"
As said in 2. of quote from the datasheet.
I understand this as "start conversion(measurement)"
As said in 2. of quote from the datasheet.
are we still talking about a ds3231 ?
if so then if chat gpt leads you to this there something terribly wrong
this is incorrect on so many levels starting with device address, conversion time and virtually every thing from there onDO
i2cwrite i2dta, i2clk, $48,$01,[132,131] 'write config
pause 10
i2cwrite i2dta, i2clk, $48,$0 'convert
pause 10
i2cread i2dta, i2clk, $48,[data1,data2] 'read data
serout2 portc.5,90, ["adc=",dec data1, dec data2,13,10]
LOOP
Warning I'm not a teacher
No, this is ADS1115, as mentioned in comments in above post.
ok that changes things a little.No, this is ADS1115
its now incorrect on so many levels starting with device address and virtually everything from there on
i2cwrite i2dta, i2clk, $48,$0 'convert is not a legitimate i2c command either
Warning I'm not a teacher
Yes I know it is not legitimate, but compiler does not give any errors or warning, so it is not a bug, it is a feature?
and I don't see any issues with IC address - it is done according to datasheet.
I don't see any issues with IC address - it is done according to datasheet.
1. Write to Config register:
– First byte: 0b10010000 (first 7-bit I2C address followed by a low R/W bit)
– Second byte: 0b00000001 (points to Config register)
– Third byte: 0b10000100 (MSB of the Config register to be written)
– Fourth byte: 0b10000011 (LSB of the Config register to be written
when has a 7 bit i2c slave address ever worked in pbp?
Warning I'm not a teacher
Does manual say anywhere that it won't ?
Bookmarks