Searching \ for '[PIC]: Dalls DS1307 clock chip and I2C' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/i2cs.htm?key=i2c
Search entire site for: 'Dalls DS1307 clock chip and I2C'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Dalls DS1307 clock chip and I2C'
2000\11\01@104054 by Jean-Michel Howland

flavicon
face
Hi all,

Can someone who has used the Dalls DS1307 clock chip actually confirm that
the 2 wire interface it has is I2C compatible?  The data sheet NEVER
mentions I2C.

Regards
Jean-Michel.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
use spam_OUTlistservTakeThisOuTspammitvma.mit.edu?body=SET%20PICList%20DIGEST




2000\11\01@114156 by ckchan

flavicon
face
yes , have done some project with that using atmel mcu.


regards,
ckchan


Jean-Michel Howland wrote:

{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
use listservspamKILLspammitvma.mit.edu?body=SET%20PICList%20DIGEST




2000\11\01@115318 by David VanHorn

flavicon
face
At 11:38 PM 11/1/00 +0800, you wrote:
>Hi all,
>
>Can someone who has used the Dalls DS1307 clock chip actually confirm that
>the 2 wire interface it has is I2C compatible?  The data sheet NEVER
>mentions I2C.

Symptomatic of not paying a licence fee to phillips.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
use .....listservKILLspamspam.....mitvma.mit.edu?body=SET%20PICList%20DIGEST




2000\11\01@115324 by Jean-Michel Howland

flavicon
face
>yes , have done some project with that using atmel mcu.

Thank you for setting my mind at ease.

Regards
Jean-Michel.



>
>
>regards,
>ckchan
>
>
>Jean-Michel Howland wrote:
>
>> Hi all,
>>
>> Can someone who has used the Dalls DS1307 clock chip actually confirm that
>> the 2 wire interface it has is I2C compatible?  The data sheet NEVER
>> mentions I2C.
>>
>> Regards
>> Jean-Michel.
>>
>> --
>> http://www.piclist.com#nomail Going offline? Don't AutoReply us!
>> use EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu?body=SET%20PICList%20DIGEST> >
>--
>
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
>use listservspamspam_OUTmitvma.mit.edu?body=SET%20PICList%20DIGEST> >
>
>

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
use @spam@listservKILLspamspammitvma.mit.edu?body=SET%20PICList%20DIGEST




2000\11\01@123432 by James Hillman

flavicon
face
It was sometime ago since I used the ds1307. It definitely works with i2c
functions, and I dug some out for you (these examples should work with CCS
PCM compiler (although I cannot check the format exactly because I no longer
use that compiler).

The DS1307 data sheet seems to indicate that you can send it an address of
any of the registers and then read or write to that register. I found that
it would only work if you addressed location 00 and allowed it to increment
itself to get to the higher registers.
Also check whether your i2c routines require a pull up resistor on both the
SCL and SDA lines. The CCS compiler i2c functions required both resistors,
example assembler code from Microchip required a pull up on only the SDA
line.

Hope this helps


James Hillman

void reset_ds1307()  //set all ds1307 time registers to zero
{
i2c_start();
i2c_write(0xD0);://device address and write bit set
i2c_write(0x00); //register pointer address start byte
i2c_write(0x00); //register 00 seconds
i2c_write(0x00); //register 01 minutes
i2c_write(0x00); //register 02 hours
i2c_write(0x01); //register 03 day
i2c_write(0x01); //register 04 date
i2c_write(0x01); //register 05 month
i2c_write(0x00); //register 06 year
i2c_write(0x13); //register 07 control sqwe enabled, 32kHz
i2c_stop();          //  register 07 written to in main() setup
delay_ms(500);  //arbitrary delay to allow ds1307 to settle
}
void read_ds1307()     //read time registers into real_time[]
{
byte i;
i2c_start();
i2c_write(0xD0);
i2c_write(0x00);  file://start address
i2c_start();
i2c_write(0xD1);  file://read command
for(i=0;i<7;++i)
real_time[i]=i2c_read(); file://read registers 00 to 06
real_time[7]=i2c_read(0); file://end the read by not acknowledging
i2c_stop();   file://control byte in real_time[7]
}


{Original Message removed}

2000\11\01@160613 by Murray Snowden

picon face
No it doesn't support I2C.

Its a 1-wire network. Check out http://www.iButton.com. All the examples on site
use Java or C programs running from PC or the TINI board.

You may find some examples using PIC, but limited examples.

Murray
{Original Message removed}

2000\11\01@162956 by Murray Snowden

picon face
Ignore my last post. I see a DS part number and i thing of 1-wire.

Sorry

Murray
----- Original Message -----
From: Jean-Michel Howland <KILLspamvegeKILLspamspamVMAPA.COM>
To: <RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU>
Sent: Wednesday, November 01, 2000 7:38 AM
Subject: [PIC]: Dalls DS1307 clock chip and I2C


{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
use TakeThisOuTlistservEraseMEspamspam_OUTmitvma.mit.edu?body=SET%20PICList%20DIGEST




2000\11\01@235906 by William Richardson

picon face
I use a DS1307 and it sure is I2C.  Not a bad chip either.


----- Original Message -----
From: "Murray Snowden" <RemoveMEmursnowspamTakeThisOuTMINDSPRING.COM>
To: <PICLISTEraseMEspam.....MITVMA.MIT.EDU>
Sent: Wednesday, November 01, 2000 4:09 PM
Subject: Re: [PIC]: Dalls DS1307 clock chip and I2C


{Quote hidden}

that
{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
use EraseMElistservspamspamspamBeGonemitvma.mit.edu?body=SET%20PICList%20DIGEST




2000\11\02@135423 by Chamberlain

flavicon
face
Yes, definitely I2C. I am using it.

Chris


----- Original Message -----
From: "Jean-Michel Howland" <RemoveMEvegeKILLspamspamVMAPA.COM>
Sent: Wednesday, November 01, 2000 3:38 PM
Subject: [PIC]: Dalls DS1307 clock chip and I2C


> Hi all,
>
> Can someone who has used the Dalls DS1307 clock chip actually confirm that
> the 2 wire interface it has is I2C compatible?  The data sheet NEVER
> mentions I2C.
>
> Regards
> Jean-Michel.
>

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestSTOPspamspamspam_OUTmitvma.mit.edu




2000\11\02@140609 by Chamberlain

flavicon
face
Yes, nice save Murray.

Chris

----- Original Message -----
From: "Murray Snowden" <spamBeGonemursnowSTOPspamspamEraseMEMINDSPRING.COM>
Sent: Wednesday, November 01, 2000 9:23 PM
Subject: Re: [PIC]: Dalls DS1307 clock chip and I2C


{Quote hidden}

that
{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamKILLspammitvma.mit.edu




More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...