[time-nuts] IRIG-B with Arduino

Chris Albertson albertson.chris at gmail.com
Thu Dec 16 00:52:47 EST 2010

Loks like I need to make myself clear also.  Sorry.  When I said
develop on the desktop I meant for a desktop target.  Writing code
this is to run on the desktop is far easier then wrioting code that is
to run in a micro controller.  Of course in both cases to type and
edit using ther desktop machine.

I have programmed micros using toggle switches and push buttons to
directly load in binary code bit by bit put that gets old real quick
but that was the way it was done.

So to be redundant.  The best way to learn programming in C is to do
so by writing for a simple and easy to use target execution
environment.  The simplest is a command line terminal

You can find the source code for NTP at
un tar the file into "somedir" and then look at
and in there is the code to read IRIG and also some good comments that
explain both irig and how to decode it.
This code samples the irig signal 8,000 times per second and does the
demodulation in software.
It also does to "ntp stuff" that you don't need to care about

The other file is in the "utils" directory and is a time code
generator used mostly for testing decoders

On Wed, Dec 15, 2010 at 8:46 PM, Bruce Lane <kyrrin at bluefeathertech.com> wrote:
>        I must not have made myself clear. I certainly plan to use the development environments on my PC. That is, after all, why I loaded up AVR Studio and the IAR packages.
>        Can you provide a link for the NTP thing you mention?
>        Thanks.
> *********** REPLY SEPARATOR  ***********
> On 15-Dec-10 at 20:27 Chris Albertson wrote:
>>On Wed, Dec 15, 2010 at 6:23 PM, Bruce Lane <kyrrin at bluefeathertech.com>
>>>        ..... I'll be learning both C and AVR assembler as I go along,
>>but the way I learn best is to actually DO something with programming ...
>>I agree with the last part.  Learn by doing some real project.   But
>>no the first part.  The best platform for learning is a "full size"
>>computer with a real OS on it.  Programming a micro-controller s MUCH
>>harder than programming a LInux desktop machine.  I've done both,
>>pretty much full time now for 30 years.   In fact if I want to get
>>something to run on an AVR in C I will write and mostly debug the code
>>as much as I can on the big Linux computer.  The  there are some
>>simulators too.  Of course you have to move to the target hardware as
>>some point but it is always best if you plan the project so that you
>>can delay that time.
>>That is one of the major advantages of the AVR over PIC, the AVR works
>>well with C so you can to more of the work on the bigger computer.
>>Getting back to the time code project.  Do look at the generator in
>>NTP.  Run it on the desktop and study the code
>>Chris Albertson
>>Redondo Beach, California
>>time-nuts mailing list -- time-nuts at febo.com
>>To unsubscribe, go to
>>and follow the instructions there.
>>__________ Information from ESET NOD32 Antivirus, version of virus
>>signature database 5706 (20101215) __________
>>The message was checked by ESET NOD32 Antivirus.
> -=-=-=-=-=-=-=-=-=-=-=-
> Bruce Lane, Owner & Head Hardware Heavy,
> Blue Feather Technologies -- http://www.bluefeathertech.com
> kyrrin (at) bluefeathertech do/t c=o=m
> "Quid Malmborg in Plano..."
> _______________________________________________
> time-nuts mailing list -- time-nuts at febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.

Chris Albertson
Redondo Beach, California

More information about the time-nuts mailing list