macsehw/firmware/rtc/README.md

28 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2020-08-06 23:02:37 +00:00
# RTC
2020-09-11 21:38:32 +00:00
This directory contains a fully functional firmware for implementing a
drop-in replacement for the RTC on ATTiny85 microcontroller.
Unfortunately, ATTiny85 cannot be a true drop-in replacement, but you
can get pretty close. The main caveat is time drift due to counting
seconds entirely from the internal oscillator, the crytsal oscillator
unfortunately cannot be used (efficiently/effectively) by the
ATTiny85.
2020-08-06 23:02:37 +00:00
2020-09-11 21:38:32 +00:00
The AVR core clock is run from an internal oscillator to generate 8
2020-09-17 07:46:49 +00:00
MHz. The required fuse bytes setting is included in the generated ELF
object file in the `.fuse` section, in the order (low, high,
extended). See the source code of MacRTC.c for more information on
electrical specifications and the like.
2020-09-11 21:38:32 +00:00
Reference source, Visited 2020-08-05:
2020-08-06 23:02:37 +00:00
* https://www.reddit.com/r/VintageApple/comments/91e5cf/couldnt_find_a_replacement_for_the_rtcpram_chip/e2xqq60/
* https://pastebin.com/baPZ4nN4
2020-09-17 07:46:49 +00:00
## Device Programming
Please note: For the ATTiny85 form factor, the external RESET pin must
be disabled since it is used for the 1-second interrupt output.
Therefore, after the initial programming, it will only be possible to
reprogram via high-voltage serial programming.