MSF clock module


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thanks Bob. I am pretty sure the clock is for Rugby/now Anthorn. So far I have got the pic to decode the minute information, and I have an LED flashing once per minute. I have 2 other LEDs flashing the 1s and 0s of the time/date information. I have been sat with a pen jotting down the 1s and 0s but not yet deciphered it into anything meaningful.

    N var word
    PAUSE 1000
    HIGH PORTB.2
    START
    PULSIN PORTB.0,0,N
    IF N=>49000 and N=<51000 THEN PULSOUT PORTB.4,50000 ;500mS 'minute'

    IF N=<15000 and n=>5000 THEN PULSOUT PORTB.5,10000 ;100mS '0'

    IF N=>15000 and n=<25000 THEN PULSOUT PORTB.6,10000 ;200mS '1'

    GOTO START

    I hear what you say on using interrupts, but with my limited experience im thinking of using a separate pic to drive the display and provide alarm functions. I only started using picbasic a couple of weeks ago, prior to that I havent used basic for at least 10 years. The code above is what im using to drive the 3 LEDs so far.

  2. #2
    Join Date
    Aug 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cunninghamjohn View Post
    I have been sat with a pen jotting down the 1s and 0s but not yet deciphered it into anything meaningful.
    That would be useful as a means of seeing if your receiver is correctly picking up the signal and as a learning aid, but otherwise not needed.

    Your clock will never be accurate until you decode a whole minute's worth of time information and set your clock from that. You can then use that to perhaps update a RTC chip, which in turn keeps your clock running until the next time you decide to do an update from MSF, if you want some form of backup.

    I won't comment on the supply to your receiver, or the level of its output as the latter might depend on how you ultimately decide to detect the pulses.

    If you care to PM me with your email address, I will send you a document that I prepared for the local U3A Science and Technology group which I think clarifies the major part of the data stream format, omitting the niceties.

Similar Threads

  1. Replies: 3
    Last Post: - 2nd June 2008, 22:00
  2. Shiftout/in
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd August 2007, 12:48
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 21:36
  4. Rugby Clock MSF Receiver
    By srob in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th November 2004, 13:35
  5. Lcd Clock Module
    By dsicon in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th December 2003, 01:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts