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!
Hi Vidarson, Sorry, I could not reply immediately as the internet here is down.The problem is obvious. Inorder for the RTC (internal)oscillator to run the Register A bits DV2,DV1 andDV0 should be made as 010.That should solve ur problem. Let me know if u have any problems. All the best with ur work. Regards, Rajesh
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
Hi, Can I have ur mail id?Just to be in touch....thats all. Bye Rajesh.
Hi,Of course you can.It's my pleasure to be in touch u.My Email is:vidarson@jjeg.com.cn And,Could you tell me urs?Just keep in touch! Regards, vidarson
Hi Vidarson, My mail id is rajesht@cmcltd.com By the way, Howz ur work going on? Rgds, Rajesh