Hi
Can anyone help me with M41T81 I2c RTC as fitted to a small module (BV4237) from byvac.co.uk.
I have it working but the data is strange because some of the bytes are arranged with 10's of units in the top 4 bits and the units are at the bottom 4 bits.
The result is it counts up to 9 then jumps to 16 and so on.
If you look at the register map in the datasheet link below you can see my problem.
http://www.st.com/stonline/products/literature/ds/7529/m41t81.pdf
Any ideas how to format this data would be very helpful.
I know its going to be simple but I have got a bit stuck.
Mbed has its own RTC but this module comes with a-d converters and temp sensor in one small unit.
Many thanks
Paul
Hi
Can anyone help me with M41T81 I2c RTC as fitted to a small module (BV4237) from byvac.co.uk.
I have it working but the data is strange because some of the bytes are arranged with 10's of units in the top 4 bits and the units are at the bottom 4 bits.
The result is it counts up to 9 then jumps to 16 and so on.
If you look at the register map in the datasheet link below you can see my problem.
http://www.st.com/stonline/products/literature/ds/7529/m41t81.pdf
Any ideas how to format this data would be very helpful.
I know its going to be simple but I have got a bit stuck.
Mbed has its own RTC but this module comes with a-d converters and temp sensor in one small unit.
Many thanks
Paul