PrecisionClockMkII

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

Branches

Name Last commit date Author
master2023-01-30 17:00:54 +0000mitxela

File Tree (HEAD)

Name Size
GPSClock.asm41.52K
README.md1.411K
build/australia_central.hex4.816K
build/australia_eastern.hex4.74K
build/australia_queensland.hex3.921K
build/australia_western.hex3.921K
build/brazil.hex3.965K
build/central_europe.hex4.608K
build/eastern_europe.hex4.608K
build/hawaii.hex3.965K
build/hawaii_with_dst.hex4.652K
build/india.hex3.953K
build/indochina.hex3.921K
build/japan.hex3.921K
build/london.hex4.532K
build/nepal.hex3.985K
build/newfoundland.hex4.685K
build/newzealand.hex4.74K
build/seoul.hex3.921K
build/us_alaska.hex4.652K
build/us_arizona.hex3.965K
build/us_atlantic.hex4.652K
build/us_central.hex4.652K
build/us_eastern.hex4.652K
build/us_mountain.hex4.652K
build/us_pacific.hex4.652K
build/with_crystal/australia_central.hex4.796K
build/with_crystal/australia_eastern.hex4.732K
build/with_crystal/australia_queensland.hex3.913K
build/with_crystal/australia_western.hex3.913K
build/with_crystal/brazil.hex3.957K
build/with_crystal/central_europe.hex4.601K
build/with_crystal/eastern_europe.hex4.601K
build/with_crystal/hawaii.hex3.957K
build/with_crystal/hawaii_with_dst.hex4.645K
build/with_crystal/india.hex3.945K
build/with_crystal/indochina.hex3.913K
build/with_crystal/japan.hex3.913K
build/with_crystal/london.hex4.524K
build/with_crystal/nepal.hex3.965K
build/with_crystal/newfoundland.hex4.664K
build/with_crystal/newzealand.hex4.732K
build/with_crystal/seoul.hex3.913K
build/with_crystal/us_alaska.hex4.645K
build/with_crystal/us_arizona.hex3.957K
build/with_crystal/us_atlantic.hex4.645K
build/with_crystal/us_central.hex4.645K
build/with_crystal/us_eastern.hex4.645K
build/with_crystal/us_mountain.hex4.645K
build/with_crystal/us_pacific.hex4.645K
dst-calc.htm4.396K
makefile1.216K
nmea.py772B
osccal.asm2.195K
osccal.hex538B

History

* 38013dd (HEAD -> master) | mitxela 2023-01-30 17:00 | Pin config | * 14994fd | mitxela 2023-01-30 15:44 | Update build files | * 11e688b | mitxela 2023-01-30 15:43 | Add Display Test mode on pin PD5 | * 3b31644 | mitxela 2022-12-15 23:15 | Add Asia/Seoul (KST) | * 36715dd | mitxela 2022-10-11 13:11 | Add Australia/Queensland | * becef92 | mitxela 2022-07-14 15:31 | Janky option to disable blinking entirely | * ff1f4ab | mitxela 2022-06-27 23:35 | Add MST/UTC for Arizona | * 1465bd2 | mitxela 2022-06-27 23:31 | Update build files | * 9e5ff04 | mitxela 2022-06-27 23:14 | Move some routines to after the lookup tables | * 85b8db1 | mitxela 2022-06-27 16:22 | Do not flash colons until leap second offset is known | * 0f42193 | mitxela 2022-06-20 10:42 | Add indochina time | * cfc8967 | mitxela 2022-04-05 15:09 | Add AWST | * e8eef25 |\ mitxela 2022-02-02 12:17 | | Merge pull request #2 from tsprlng/patch-2 | | | * 7ca333e |/ Tom Spurling 2022-02-02 10:31 | Slightly improve suggested Linux avrasm2 wrapper | * ad4cc2c | mitxela 2021-11-10 16:14 | Add build files with USE_CRYSTAL definition | * 886c36e | mitxela 2021-11-10 16:13 | Add USE_CRYSTAL definition. Change which pins are used for UTC override and permanent summertime scenario | * 8609077 | mitxela 2021-11-10 15:27 | Add Australia Central time ACST/ACDT | * 47ac775 | mitxela 2021-03-02 12:18 | Allow UTC indication for areas without DST | * 9f2b443 | mitxela 2021-03-02 11:41 | Add Brazil | * 97fbb9c | mitxela 2020-12-12 01:06 | Output correct checksum in nmea.py | * e734f16 | mitxela 2020-11-08 18:46 | Implement DST switch at 2AM, 3AM local for Aus/NZ | * a74dc57 | mitxela 2020-11-07 14:44 | Implement DST switch at 2AM local time for US timezones | * 2a115ad | mitxela 2020-11-05 16:37 | Update build files | * bfb3a3e | mitxela 2020-11-05 16:37 | Add support for UTC/local time switch | * 6c2cb53 | mitxela 2020-10-21 15:14 | Update build files | * 4fde22d | mitxela 2020-10-21 15:13 | Update NMEA check to allow $GNRMC, $GLRMC, etc | * 57d22da | mitxela 2020-10-21 15:09 | Touch up makefile | * ae3dea1 | mitxela 2020-01-30 15:41 | Update build files | * e423a30 | mitxela 2020-01-30 15:35 | Add osccal calibration routine | * e08d795 | mitxela 2020-01-27 11:33 | Add AEST/AEDT timezone | * 1ec26d6 | mitxela 2020-01-04 01:59 | ...nothing to see here... | * 17debbc | mitxela 2019-12-09 13:10 | Add EET/EEST and JST timezones, update build files | * 03937c4 | mitxela 2019-12-09 12:14 | Option for permanent summer time on PA0 | * cb6a278 | 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.