12.07.2015 Views

Electromechanical Timer Replacement - 320Volt

Electromechanical Timer Replacement - 320Volt

Electromechanical Timer Replacement - 320Volt

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Electromechanical</strong> <strong>Timer</strong><strong>Replacement</strong>Solutions Cubed Real-Time ClockAuthor:OVERVIEWThis design fragment is based upon converting an electromechanicaltimer idea to a PIC12CXXX 8-bit microcontroller.DESIGN IDEADavid BrobstSolutions CubedChico, CAUSAemail: solcubed@solutionsThis design idea uses the PIC12C50X series of 8-pinmicrocontrollers to implement a medium accuracy realtimeclock. There are two unique features to this designwhen compared to other real-time clock designs. Thefirst is that common asynchronous communicationbaud rates can be easily implemented. The other is thatleap year compensation is implemented in a straightforward and simple manner. Figure 1 shows the basichardware for the design.HARDWARE METHODOLOGYThe heart of the system is the 2.4576MHz (X1) crystalwhich can be found from any of the leading crystal manufacturers.The neat thing about this value is that itallows for an easy clock breakdown for asynchronouscommunication and allows for a fairly easy implementationof a real-time clock. As with any real-time clock, theaccuracy of the crystal and the value of its load are themajor factors in determining clock accuracy. In thiscase, X1 can be easily obtained with a 20 ppm accuracyand a 16 pF load.By using the internal MCLR of the PIC12CXXX family,an extra input pin is made available. C1 is used fordecoupling purposes.FIGURE 1:BASIC HARDWARE FOR REAL-TIME CLOCK IMPLEMENTATION+5VU11VCCC10.01 mFC233 pF33 pFC3X12.4576 MHz238OSC1/CLKINOSC2/CLKOUTGNDGP0GP1GP2GP37654PIC12C50XMicrochip Technology Incorporated, has been granted a non-exclusive, worldwide license to reproduce, publish and distribute all submitted materials, ineither original or edited form. The author has affirmed that this work is an original, unpublished work and that he/she owns all rights to such work. Allproperty rights, such as patents, copyrights and trademarks remain with author.© 1997 Microchip Technology Inc. DS40150A/1_011-page 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!