RTC RAM

KW ds1307 ram使い方
RTC ram使い方
http://blog.digit-parts.com/pdf/rtc612130713sp.pdf
http://www.eleki-jack.com/FC/2011/07/arduino3.html
http://forum.arduino.cc/index.php/topic,18943.0.html

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();
}

http://forum.arduino.cc/index.php/topic,152248.0.html

#define DS1307_ADDR 0x68
#define RAM_OFFSET 8 //map logical ram addresses (0-55) to physical addresses (8-63)

//write to DS1307 RAM where addr>=0 and addr<56
void dsSramWrite(byte addr, byte *values, byte nBytes)
{
Wire.beginTransmission(DS1307_ADDR);
Wire.write(addr + RAM_OFFSET);
for (byte i=0; i=0 and addr<56
void dsSramRead(byte addr, byte *values, byte nBytes)
{
Wire.beginTransmission(DS1307_ADDR);
Wire.write(addr + RAM_OFFSET);
Wire.endTransmission();
Wire.requestFrom( (uint8_t)DS1307_ADDR, nBytes );
for (byte i=0; i