| From | Lynndon Harnell <lynndonh@ecn.net.au> |
| Date | Thu, 14 Jun 2001 17:41:56 +1000 |
Thank you for all the help you people have given me on the DS1621....now I need help for the DS1307. :)
i2cstart
i2cwbyte &B11010000 'write mode
i2cwbyte &H00 'access seconds register
i2cwbyte &h00 'enable oscillator
i2cstop
i2cstart
i2cwbyte &b11010001 'read mode
i2crbyte secs, ack
i2crbyte mins, ack
i2crbyte hour, nack
i2cstop
lcd secs
lcd mins
lcd hour
Output= all 00!
What is wrong?