Hello,
I was looking through the datasheet of the DS1307 RTC and I saw that it contains 56 bytes of ram. I need to know how to access the ram, how can I do this?
Hello,
I was looking through the datasheet of the DS1307 RTC and I saw that it contains 56 bytes of ram. I need to know how to access the ram, how can I do this?
Here's a good spot that shows how to access the RTC functions http://www.glacialwanderer.com/hobbyrobotics/?p=12#comment-3723
I think you just have to set the register pointer past the time/date data. Maybe 0x08? as 0-7 are the time/date bytes, but don't quote me on that. I'm just pulling that from the code on the other pages
I dont think the library has a function for ram, Jerry i dont see anything about the ram...
you could use :-
void WriteRam(int address,byte data){
Wire.beginTransmission(0x68); // Select DS1307
Wire.send(address+8); // address location starts at 8, 0-6 are date, 7 is control
Wire.send(data); // send data
Wire.endTransmission();
}
where address is 0-55
Thanks Squiggler!