CAI_Support said:
first to tell sensor which register to read, then second time to actually read those two bytes in.
Each time when specify the address 0x91
I don't get that from reading the quickstart. I am only using 0x91 a single time, to initiate the reads, not when setting the pointer to the conversion register. there it is 0x90, like when it is first set to the config register. the guide uses the low bit 0x90 both times when writing to the config and conversion registers, the high bit 0x91 is only used once before the two reads.
i2cwrite 1 0 0x90 # address (write)
i2cwrite 0 0 0x1 # pointer to config
i2cwrite 0 0 0xc0 # 11000000 = aip0, pga = +/- 6.144v, continuous
i2cwrite 0 1 0x83 # default data rate, comparator disabled
i2cwrite 1 0 0x90 # address (write)
i2cwrite 0 1 0x0 # pointer to conversion
i2cwrite 1 0 0x91 # address (read)
i2cread 0 0 RAM21 # read first byte
i2cread 0 1 RAM20 # read second byte
SET VAR2 RAM2L
no change with the modified start/stop, still 65335. I was hopeful. If I add 'delay 2' either before or after the 'i2cwrite 1 0 0x91', then sometimes it will briefly read 0, then change back to FFFF