Searching \ for '[PIC]:About ds1307' 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/microchip/devices.htm?key=pic
Search entire site for: 'About ds1307'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:About ds1307'
2002\06\30@162033 by Ali Couran Kote

picon face
Hi all,
I am writing a software for ds1307 Real Time Processor
connected to PIC16F877 and have some questions:
The address of the ds1307 is 0xD0 for write to it and
0xD1 for read from it. For writing, user has to send,
after sending 0xD0 to the device, another byte called
register pointer. This byte is the adress of the
register which is going to be changed. But for
reading, the document about the ds1307 tells that
after the user has sent the read-command, the device
sends an ACK and then begins immediately to send the
contain of the memory pointed to by the last value in
the register pointer. Is there any possibility to
adjust this register pointer to the info which i want
to read from the device?
Is it possible to reset the ds1307 by software?
Thank to all of you.
Ali


=====
*******************************
* Ali C. KOTE                 *
* Tel.: +221 6381646          *
* BP 16430                    *
* Dakar-Fann                  *
* E-mail: spam_OUTalikoteTakeThisOuTspamyahoo.com   *
*******************************

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2002\06\30@185746 by David Duffy

flavicon
face
part 1 1250 bytes content-type:text/plain; x-avg-checked=avg-ok-38F13F9A; charset=us-ascii; format=flowed (unknown type 8bit not decoded)

At 01:20 PM 30/06/2002 -0700, you wrote:
>Hi all,
>I am writing a software for ds1307 Real Time Processor
>connected to PIC16F877 and have some questions:
>The address of the ds1307 is 0xD0 for write to it and
>0xD1 for read from it. For writing, user has to send,
>after sending 0xD0 to the device, another byte called
>register pointer. This byte is the address of the
>register which is going to be changed. But for
>reading, the document about the ds1307 tells that
>after the user has sent the read-command, the device
>sends an ACK and then begins immediately to send the
>contain of the memory pointed to by the last value in
>the register pointer. Is there any possibility to
>adjust this register pointer to the info which i want
>to read from the device?

IIRC, you do a dummy write just before the read to set the
pointer to whatever address you want to start reading from.
Regards...
___________________________________________
David Duffy        Audio Visual Devices P/L
U8, 9-11 Trade St, Cleveland 4163 Australia
Ph: +61 7 38210362   Fax: +61 7 38210281
New Web: http://www.audiovisualdevices.com.au
___________________________________________


part 2 105 bytes
--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamKILLspammitvma.mit.edu


2002\06\30@221417 by David Duffy

flavicon
face
part 1 1250 bytes content-type:text/plain; x-avg-checked=avg-ok-38F13F9A; charset=us-ascii; format=flowed (unknown type 8bit not decoded)

At 01:20 PM 30/06/2002 -0700, you wrote:
>Hi all,
>I am writing a software for ds1307 Real Time Processor
>connected to PIC16F877 and have some questions:
>The address of the ds1307 is 0xD0 for write to it and
>0xD1 for read from it. For writing, user has to send,
>after sending 0xD0 to the device, another byte called
>register pointer. This byte is the address of the
>register which is going to be changed. But for
>reading, the document about the ds1307 tells that
>after the user has sent the read-command, the device
>sends an ACK and then begins immediately to send the
>contain of the memory pointed to by the last value in
>the register pointer. Is there any possibility to
>adjust this register pointer to the info which i want
>to read from the device?

IIRC, you do a dummy write just before the read to set the
pointer to whatever address you want to start reading from.
Regards...
___________________________________________
David Duffy        Audio Visual Devices P/L
U8, 9-11 Trade St, Cleveland 4163 Australia
Ph: +61 7 38210362   Fax: +61 7 38210281
New Web: http://www.audiovisualdevices.com.au
___________________________________________


part 2 105 bytes
--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu



'[PIC]:About ds1307'
2002\07\03@082502 by Ali Couran Kote
picon face
Hello every one,
In my last mail, i was asking question about reading
infos from the DS1307. After reactions from some kind
people(in jallist and piclist) to these questions, I
come back with the following:

A/ NORMAL READ:
1.Send START to I2C
2.SENDREAD(0xD1) to DS1307
3.Receive ACK from DS1307
4.Receive Byte from DS1307
5.Send ACK to DS1307
6.Receive Byte from DS1307
7.Actions 5. and 6. keep on
alternatively until the last
byte needed is received
from the DS1307. Then NOACK
is sent to it for the END
OF THE READ TRANSACTION.

In this case, the informations
read from the DS1307 are not
precisely known because the
first byte received was pointed
by the REGISTER POINTER which
contain was determined by the
last transaction(ref. doc.
from Dallas semic. at
http://www.maxim-ic.com, page 8, the
last 2 sentences).

So, after your reactions to my
questions about the DS1307, I
have imagined the following:

B/ READ NEEDED INFO:
1.Send START to I2C bus
2.SENDWRITE(0xD0) to DS1307
3.Receive ACK from DS1307
4.Send ADRESSE to DS1307
(Ex.:0x01 for MINUTES)
5.Receive ACK from DS1307
6.Send STOP to I2C bus
7.Then execute the abow "A/ NORMAL READ".

Just tell me if i am right or not.


=====
*******************************
* Ali C. KOTE                 *
* Tel.: +221 6381646          *
* BP 16430                    *
* Dakar-Fann                  *
* E-mail: EraseMEalikotespam_OUTspamTakeThisOuTyahoo.com   *
*******************************

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\07\03@101133 by Paul Hutchinson

flavicon
face
That is correct.

I did a commercial project with the DS1307 last year and your write the
address before read pseudocode looks like the one I wrote.

Paul

> {Original Message removed}

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