Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/10 03:58
Read: times


 
#172880 - Is CE being pulsed off?
Responding to: ???'s previous message
Are you driving the CE pin low after the write operation that writes the CH bit?

The data sheet describes how you must pulse the CE high to low to transfer data written in a sequence into the actual running registers inside the chip.

You may want to try this as a debug step...

When you go to stop the clock read out all the time registers and save them in the MCU someplace. Then write the CH bit = 1 to stop the clock.

When you go to restart the clock rewrite the full set of time registers from the saved copy in the MCU.

I would encourage you to look at using the burst mode for doing these reads and writes.

Michael Karas


List of 2 messages in thread
TopicAuthorDate
DS1302 - Stop and Restart Clock Problem            01/01/70 00:00      
   Is CE being pulsed off?            01/01/70 00:00      

Back to Subject List