Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Calender IC PCF8563

Status
Not open for further replies.
Electronics4you said:
How can I combine the real time clock/calender IC PCF8563 from Philips with a PIC microcontroller?
The PCF8563 is a CMOS real time clock/calendar optimized for low power consumption. A programmable clock output, interrupt output and voltage-low detector are also provided. All address and data are transferred serially via a two-line bidirectional I²C-bus. Maximum bus speed is 400 kbit/s. The built-in word address register is incremented automatically after each written or read data byte.
It uses I2C Bus, so connect it to PIC with 2 wires (SDA and SDL). Use Software or Hardware I2C in the PIC to interface the IC. Use commands from Datasheet of PCF8563 to set and retrieve date info.
 
How accurate is that chip? My current project uses a 32k crystal on Timer1 of a 16F628 for a RTC, in addition to the main functions of the program. Accuracy is about 4 seconds per 24 hours.

Mike
 
upand_at_them said:
How accurate is that chip? My current project uses a 32k crystal on Timer1 of a 16F628 for a RTC, in addition to the main functions of the program. Accuracy is about 4 seconds per 24 hours.

Mike
It should be around 5 Minutes per year (depending on Crystal used, Voltage and Temperature...).
 
upand_at_them said:
How accurate is that chip? My current project uses a 32k crystal on Timer1 of a 16F628 for a RTC, in addition to the main functions of the program. Accuracy is about 4 seconds per 24 hours.

Mike

Mike,

I did this a couple of years ago and got much better accuracy than that. I used the special events trigger on ccp1 to reset the timer to 32767 I.E. 1 less than the crystal frequency.

I can did the code out if it would help at all.

Mike.
 
reply

Your tutorials always come in handy Nigel.

I hope my website will come in handy the way yours does
except mine is only for robotics.

Anyway here is a update of my website
I am working on the hardware for the sercurity robot and will post it as soon as I get a hold on my friends digital camera.
Also my tutorials for my spybot
which is a begniner project for the newbies will becoming
july 5.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top