What is a purpose of I2C Wr(0xD0) and I2C_Wr(0xD1) for ds1307 RTC.
anybody can explain to me
thanks.
what is a purpose of I2C Wr(0xD0) and I2C_Wr(0xD1) ??
-
- Posts: 53
- Joined: 27 May 2013 13:48
Re: what is a purpose of I2C Wr(0xD0) and I2C_Wr(0xD1) ??
Extract of the DS1307 datasheet:johnsonpay wrote:What is a purpose of I2C Wr(0xD0) and I2C_Wr(0xD1) for ds1307 RTC.
anybody can explain to me
thanks.
11010000 is 0xD0.The slave address byte contains the 7-bit DS1307 address, which is 1101000, followed by the
direction bit (R/W), which for a write is 0.
11010001 is 0xD1.The slave address bytecontains the 7-bit DS1307 address, which is
1101000, followed by the direction bit (R/W), which is 1 for a read.
See perhaps also http://www.rosseeld.be/DRO/PIC/I2c%20in ... Pascal.htm, section 'I2c Addresses' and http://www.rosseeld.be/DRO/PIC/links.htm (search for "I2c") for more general I2c knowledge.
Last edited by Dany on 18 Jan 2014 18:49, edited 2 times in total.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Re: what is a purpose of I2C Wr(0xD0) and I2C_Wr(0xD1) ??
Hello,
Dany gave the right answer.
Read page 12 in DS1307 datasheet.
Best regards,
Peter
Dany gave the right answer.
Read page 12 in DS1307 datasheet.
Best regards,
Peter