Name | Last commit date | Author |
---|---|---|
master | 2024-06-17 16:52:24 +0100 | mitxela |
Name | Size |
---|---|
GPSClock.asm | 41.54K |
README.md | 1.411K |
build/australia_central.hex | 4.816K |
build/australia_eastern.hex | 4.74K |
build/australia_queensland.hex | 3.921K |
build/australia_western.hex | 3.921K |
build/brazil.hex | 3.965K |
build/central_europe.hex | 4.608K |
build/eastern_europe.hex | 4.608K |
build/hawaii.hex | 3.965K |
build/hawaii_with_dst.hex | 4.652K |
build/india.hex | 3.953K |
build/indochina.hex | 3.921K |
build/japan.hex | 3.921K |
build/london.hex | 4.532K |
build/nepal.hex | 3.985K |
build/newfoundland.hex | 4.685K |
build/newzealand.hex | 4.74K |
build/seoul.hex | 3.921K |
build/us_alaska.hex | 4.652K |
build/us_arizona.hex | 3.965K |
build/us_atlantic.hex | 4.652K |
build/us_central.hex | 4.652K |
build/us_eastern.hex | 4.652K |
build/us_mountain.hex | 4.652K |
build/us_pacific.hex | 4.652K |
build/with_crystal/australia_central.hex | 4.796K |
build/with_crystal/australia_eastern.hex | 4.732K |
build/with_crystal/australia_queensland.hex | 3.913K |
build/with_crystal/australia_western.hex | 3.913K |
build/with_crystal/brazil.hex | 3.957K |
build/with_crystal/central_europe.hex | 4.601K |
build/with_crystal/eastern_europe.hex | 4.601K |
build/with_crystal/hawaii.hex | 3.957K |
build/with_crystal/hawaii_with_dst.hex | 4.645K |
build/with_crystal/india.hex | 3.945K |
build/with_crystal/indochina.hex | 3.913K |
build/with_crystal/japan.hex | 3.913K |
build/with_crystal/london.hex | 4.524K |
build/with_crystal/nepal.hex | 3.965K |
build/with_crystal/newfoundland.hex | 4.664K |
build/with_crystal/newzealand.hex | 4.732K |
build/with_crystal/seoul.hex | 3.913K |
build/with_crystal/us_alaska.hex | 4.645K |
build/with_crystal/us_arizona.hex | 3.957K |
build/with_crystal/us_atlantic.hex | 4.645K |
build/with_crystal/us_central.hex | 4.645K |
build/with_crystal/us_eastern.hex | 4.645K |
build/with_crystal/us_mountain.hex | 4.645K |
build/with_crystal/us_pacific.hex | 4.645K |
dst-calc.htm | 4.396K |
makefile | 1.216K |
nmea.py | 772B |
osccal.asm | 2.195K |
osccal.hex | 538B |
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.