--=======46902210======= Content-Type: text/plain; x-avg-checked=avg-ok-38F13F9A; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit 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: www.audiovisualdevices.com.au ___________________________________________ --=======46902210=======-- -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu