Title: master clock please Post by: benaddi6 on August 06, 2008, 11:38:12 23:38 hi
I need project about a master clock system by a PIC ,ho to send a impulse to control a analogue clock a simailr product http://uk.techni-contact.com/produits/647-7362530-quartz-master-clock.html (http://uk.techni-contact.com/produits/647-7362530-quartz-master-clock.html) thinks Title: Re: master clock please Post by: j0k3r on August 07, 2008, 09:44:18 09:44 you can use one of the internal timers to generate an interrupt every 1second and to toggle a pin, or if you want a realy simple one, chose one of the RTC avaible on market, like Maxim http://para.maxim-ic.com/en/search.mvp?fam=rtc&tree=timers the have some RTC´s (with cristal inclued) with a 1Hz pin output.
Title: Re: master clock please Post by: elektrom on November 12, 2008, 10:48:29 10:48 You may use 32.768KHz crystal for PIC to get high accuracy timer. But in case that 8,192 instruction per second is enough for your system.
Title: Re: master clock please Post by: caveman508 on January 10, 2009, 06:22:24 06:22 benaddi6,
Using a CCS compiler, (with this great site, no need to help you there). Try this code for a 18F4423, just change the #include on line 1 for your device. This example of coding technique is quite poor from a professional point of view, I am sure of that !!. Many comments within to explain, Please Read through the code. Do have fun with the knobs. Hope your coding days will evolve as mine has through the years. I will try to be here more often for questions. Caveman PS. It worked in Proteus. Code:
|