PIC clock

  
The WWVB signal is broadcast as a 60 kHz carrier that is AM modulated with a time code frame that is updated once per minute. The data rate is one bit per second. Along with time code information, the data frame also contains synchronization bits, calendar data, UT1 correction, leap year, and leap second data. The clock design presented here only decodes the time data and daylight savings correction data. The software could easily be modified to include decoding of the other information bits, if desired. The the low frequency WWVB signal strength is weak and reception can be problematic. Signal acquisition time is variable, depending on location and atmospheric conditions. Reception is usually best at night between 8pm - 4am. To use the clock, just apply power and wait for reception of the WWVB signal. When the clock receives a complete error-free frame of data, it will automatically reset the display to show the correct time. After the initial time correction, the clock will maintain time even if WWVB reception is lost.
PIC clock - schematic

As shown in the schematic (pdf format), the heart of the clock is a PIC 16F628 microcontroller running at 4 MHz. Decoded time data is sequentially output from the microcontroller (RA0 - RA3) to the 7-segment decoder/drivers on a 4-bit data bus. The data is output sequentially as seconds, 10s of seconds, minutes, 10s of minutes, hours, and 10s of hours. The microcontroller outputs (RB1, RB2, RB3) route a 10 uSec stroble pulse from RB4 out to each of the 7-segment decoder/drivers at the proper time to latch the data bus values. Seconds and 10s of seconds display values are updated once per second. Minutes, 10s of minutes, hours, and 10s of hours are updated once per minute. The display consists of 1` red-orange LED 7-segment displays. The decimal points on the displays are used to form colons to separate the seconds, minutes, and hours. The 10s of seconds and 10s of minutes displays are mounted upside down to form the upper colon dots. The WWVB receiver is a C-MAX model CMMR-6 and is available from Digi-Key (www.digikey.com) as part # 561-1014-ND complete with loopstick antenna. Data output from the receiver is sampled by the microcontroller on RB0. Construction I have built two of these clocks, one using point-to-point wiring and one using a pcb. Both versions perform well. Just keep the receiver away from noise sources and the wire / trace lengths short to minimize inductance. I found that the receiver is also sensitive to magnetic fields produced by power supplies. I used a 9V, 200 mA `wall-wart` instead of an internal power supply to eliminate this problem. My pcb was designed using Free PCB software www.freepcb.com. The artwork contains both the main board and the display board on a single layout to save the cost of two separate boards. I purchased the pcb from www.4pcb.com by sending them the gerber files and using their `bare-bones` process. The `bare-bones` process does not include solder mask nor silk-screen. Just cut off the display board from the main board and mount it at a right angle to the main board and wire them together using the pads provided. Receives time broadcast from WWVB, Fort Collins, CO Auto synchronizes internal time with WWVB time Maintains local time when WWVB signal is lost This version is for Pacific Standard Time, and auto detects/corrects for Daylignt Savings Time 6-digit display of hours, minutes, seconds using 1` seven-segment LED displays WWVB sync indicator Time display is in 12-hour format PIC 16F628 microcontroller Software written in C All tools (schematic editor, C compiler, PCB layout software, PIC programmer are free and available for download on the web.



Recommended videos


  • Populaire video
     
  • Digital CLOCK PROJECT (PIC) + Circuit +Mikro c Code Download
    Duration: 1:12.
  • LCD PIC Clock with the Maxim DS1307 RTC
    Duration: 4:18.

News


  • iStreetWire
    iStreetWire It also provides development tools that enable system designers to program for specific applications; analog, interface, mixed signal, and timing products comprising power management, linear, mixed-signal, high-voltage, thermal&n
     19 January 2017
  • iStreetWire
    Immunomedics, Inc. (IMMU) grew with the stock adding 9.78% or $0.35 to close at $3.93 on active trading volume of 2.44M compared its three months average ...
     13 January 2017
  • Versatile dev kit for PIC MCU and dsPIC digital signal controllers
    Electropages (blog)
    MCU and dsPIC digital signal controllersAvailable now from RS Components, the Microchip Explorer 16/32 development kit is a versatile full-featured prototyping platform for 16-bit and 32-bit and dsPIC digital signal controllers. The Explor
     10 January 2017
  • iStreetWire
    iStreetWire It also provides development tools that enable system designers to program for specific applications; analog, interface, mixed signal, and timing products comprising power management, linear, mixed-signal, high-voltage, thermal&n
     4 January 2017
  • Hackaday
    Hackaday Powering it all are a ace of : an ATMega328 for the 7-segments and a range of controlling the bar graphs and RGB LEDs. Another handles RF communication with the sensors, which are housed in a remote box. We've embedded ...<
     2 January 2017
  • PR Newswire (press release)
    Electronics Weekly CHANDLER, Ariz., Sept. 13, 2016 /PRNewswire/ -- Microchip Technology Inc. (NASDAQ: MCHP), a leading provider of microcontroller, mixed-signal, analog ...Microchip dev board covers 16 and 32bit PICs - Electronics Weekly
     13 September 2016
  • Electronic Design
    Electronic Design a Way to Online Development1) ings cloud-based development tools to developers. It is a complete MPLAB X integrated development environment (IDE) environment. This includes debugging hooks to local devices. There are s
     19 February 2016
  • EE Times
    EE Times 15) announced a new cloud-based integrated development environment (IDE) for the company's . According to Microchip (Chandler, Ariz.), the free MPLAB Xpress cloud-based IDE is the easiest way for users to get started with MCUs,&
     16 February 2016
  • ElectronicsWeekly.com
    ElectronicsWeekly.com Microchip adds data encryption to . Microchip has tuned its eXtreme Low Power (XLP) range with increased data protection capabilities. Recommended Articles. Microchip Explorer 1632 dev board. Microchip dev board&nbs
     25 June 2014

.