Vielen Dank erstmal für die Antworten.
Angenommen ich will jetzt auf 0,25° umstellen, d.h. R1=0, R0=1. Dann würde das "CONFIGURATION REGISTER" folgendermaßen aussehn: 00001100 welches dem hexwert 0xC entspricht, soweit richtig?
Aber wie sende ich jetzt das configurations register? Einzige was mir jetzt einfällt wäre so:
Code:
#define accconf AC
i2c_init();
i2c_start(i2ctemp1 + I2C_WRITE);
i2c_write(STARTCONVERT + accconf);
i2c_stop();
Nur wie sage ich ihm dann wie das configurations register auszusehen hat? Also 00001100 (C)
Access Config [ ACh ]
Reads or writes the 1-byte configuration register.
MSb bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 LSb
DONE THF TLF NVB R1 R0 POL* 1SHOT*
Lesezeichen