Other Parts Discussed in Thread: BQ32000,
Tool/software:
The BQ32002 (and BQ32000) has separate registers for parts of date and time, all which can be read and written separately over I2C.
But if separate I2C accesses are made, and the SECONDS register wraps from 59 to 00 in between access to the MINUTES and SECONDS registers, then the time that is read or written will be wrong.
However, the registers are placed at consecutive addresses in the I2C address space, whereby a atomic I2C read or write operation starting at address 0x00 and reading or writing 7 bytes will cover all registers for date and time.
Does such an atomic I2C operation for multiple bytes ensure consistent read or write of all registers with data and time information, so that sample at read or update at write is simultaneous for all registers in time and date ?
Reading the Linux driver code indicates that, but it is not described explicitly in the general documentation, so clarification is appreciated.
Thanks in advance :-)