PrecisionClockMkII

No description provided
git clone https://git.mitxela.com/PrecisionClockMkII.git
Log | Files | Refs | README

Branches

Name Last commit date Author
master2019-05-06 17:42:48 +0100mitxela

File Tree (HEAD)

Name Size
GPSClock.asm34.33K
README.md1.411K
build/central_europe.hex4.452K
build/india.hex3.797K
build/london.hex4.356K
build/nepal.hex3.829K
build/newfoundland.hex4.528K
build/newzealand.hex4.473K
build/us_alaska.hex4.496K
build/us_atlantic.hex3.821K
build/us_central.hex4.496K
build/us_eastern.hex4.496K
build/us_hawaii.hex4.496K
build/us_mountain.hex4.496K
build/us_pacific.hex4.496K
dst-calc.htm4.396K
makefile803B
nmea.py689B

History

* cb6a278 (HEAD -> master) | mitxela 2019-05-06 17:42 | Update readme | * 4d9bc8d | mitxela 2019-04-18 23:53 | Add more US timezones | * eb9c5bb | mitxela 2019-04-18 23:22 | Add Central European Time | * 1d31999 | mitxela 2019-04-18 23:11 | Eliminate staggered colon update | * 980959f | mitxela 2019-04-18 21:52 | Python script for generating fake NMEA strings | * ce86866 | mitxela 2019-04-18 14:26 | Set timer prescaler to /8 | * 6a0ad8a | mitxela 2019-04-16 17:40 | Use makefile to build for all timezones | * 74ecf83 | mitxela 2019-04-15 19:50 | Tie colon flashing directly to PPS presence | * de36850 | mitxela 2019-04-15 16:06 | Remove EHLP nonsense at startup | * 33035f0 | mitxela 2018-10-06 15:29 | Add support for fractional timezones | * 1698459 | mitxela 2018-10-06 01:52 | Support for western (negative) timezones | * 59d0a9a | mitxela 2018-10-05 02:58 | Improvements to generated lookup tables | * d78866c | mitxela 2018-10-04 23:38 | Tool for precalculating DST calendars in BCD | * 52db4ae | mitxela 2018-10-04 23:25 | Tentative support for positive timezones | * 0296029 | mitxela 2018-10-04 00:55 | First foray into timezones, DST in southern hemisphere | * bf4d4b6 | mitxela 2018-10-03 15:31 | Fix colon alignment | * 359415a | mitxela 2018-09-28 23:37 | Improvements to timings following 1000fps footage | * f2301b4 | mitxela 2018-09-09 12:58 | Only flash colons when we have a GPS fix | * 13529dd | mitxela 2018-09-09 00:06 | Remove unnecessary ram usage | * b2b0b57 | mitxela 2018-09-08 23:42 | Port to ATtiny4313 and update interpolation code | * b3e7d9f | mitxela 2018-08-21 17:51 | Fix inconceivable error in BST date for 2019 | * fc6a0e9 mitxela 2016-10-15 17:05 Moved to github

Contents of README.md:

Precision Clock Mk II

Code for the ATtiny2313 used in both the Precision Clock Mk IIĀ½ and its predecessor.

The code is compatible with the ATiny2313, ATtiny2313A and ATtiny4313. The only difference between the chips is the amount of memory, and the code is short enough to fit onto the smaller chip. There is a variable in the makefile to set the chip, but it's only really needed to stop avrdude complaining about the chip signature.

Timezones and daylight saving is now configured by compile-time definitions. The makefile handles this seamlessly, but if you're not interested in setting up the environment there are pre-built hex files for all locations in the build folder. I will expand the list of generated hex files as needed. If you want to add a different timezone, the format should be quite easy to understand, feel free to submit a pull request.

To configure the build environment you only need avrasm2.exe and make. On linux I run avrasm2 under wine, I have a script in /usr/bin that looks like

#!/bin/sh
wine ~/avrasm/avrasm2.exe -I ~/avrasm $*

The makefile greps through the source code for the timezone definitions, and builds each one using a pattern. You can then flash a specific timezone by typing for instance

make flash-us_central

make flash defaults to London.