A library and implementation example for decoding the UK MSF atomic clock signal broadcast on 60 kHz.
The decoder itself is hardware agnostic and requires only edge triggered interrupts and a free-running millisecond timer counter. Although this particular implementation is targetted at the Texas Instruments TM4C microcontroller family it should be easy to port to other platforms.
- Code Composer Studio 10.4.0
- TivaWare SDK version 2.2.0.295
- T.I. Driver Library 2.2.0.295
- EK-TM4C1294XL evaluation board
The repository contains two project folders:
MSF60decode | The decoder library |
decoder-test | Example project using the library |
Import the projects into you CCS workspace and build. You may need to tweak include paths or search paths to match your TivaWare installation.
Hardware & software configuration options are in config.h
To help with porting, when doing a debug build support for an optional debug UART and blinky LED can be included in the library, along with various logging options. See config.h for details.
Much of the BCD decoding is adapted from an Arduino project on The Oddbloke Geek Blog
Wikipedia article here
National Physics Laboratory MSF signal specification here
This software is Public Domain. Do whatever the hell you want with it.