This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use DS12887?

Hi,
The interface DS12887 to MCU(I use 89c52) is all right.But I can't programe it with C51.My application is very simple.I just want to initiate and read the RTC.What can I do?
Many thanks for any help!

Parents
  • Hi Rajesh,
    It works!When I return my lab this Monday,I'm so happy that it works very well.Perhaps,the Moon Festival in my country,china, gives me a big luck.However,I didn't change any codes in my program at all.I just commented the 'init' func in the main procedure,and the RTC can run freely in the absence of the power.So,I can draw a conclusion that,
    1.If the bits DV2,DV1,DV0 in the register A is set to 010,as u say,the internal oscillator could be turned on.When powered off,the internal lithium battery will work and the oscillator will not stop.&
    2.Writing the Set bit in the Register B to a 1 stops the update tranfer.I just made the fault,forgetting to clear the Set bit.
    I dont's know whether there is any problem in the future.But,I think I can solve it with ur help.
    Many thanks for ur help!
    All the best with ur work too.
    regards,
    vidarson

Reply
  • Hi Rajesh,
    It works!When I return my lab this Monday,I'm so happy that it works very well.Perhaps,the Moon Festival in my country,china, gives me a big luck.However,I didn't change any codes in my program at all.I just commented the 'init' func in the main procedure,and the RTC can run freely in the absence of the power.So,I can draw a conclusion that,
    1.If the bits DV2,DV1,DV0 in the register A is set to 010,as u say,the internal oscillator could be turned on.When powered off,the internal lithium battery will work and the oscillator will not stop.&
    2.Writing the Set bit in the Register B to a 1 stops the update tranfer.I just made the fault,forgetting to clear the Set bit.
    I dont's know whether there is any problem in the future.But,I think I can solve it with ur help.
    Many thanks for ur help!
    All the best with ur work too.
    regards,
    vidarson

Children