Andrew Makousky
600f120c85
RTC: Use open-drain signaling on 1SEC too.
2020-11-25 01:08:03 -06:00
Andrew Makousky
745d73b98a
RTC: Program fuse bits from C source.
2020-09-17 02:46:49 -05:00
Andrew Makousky
c4d34dae71
Refactor to reduce RTC code size.
2020-09-17 00:41:02 -05:00
Andrew Makousky
4e6537e57a
Cleanup, fix bug in RTC test code.
2020-09-17 00:00:00 -05:00
Andrew Makousky
3858671656
Timer accuracy improvement: +=
instead of =
.
2020-09-13 18:38:44 -05:00
Andrew Makousky
d953828a1b
F_CPU unsigned long constant.
2020-09-11 18:06:42 -05:00
Andrew Makousky
1ebb48e1c9
Update README.md, configure XTAL pins.
2020-09-11 16:38:32 -05:00
Andrew Makousky
1484f7a189
Remove tabs, oops sorry.
2020-09-11 16:12:18 -05:00
Andrew Makousky
fe1bb541c1
Act on falling edge rather than rising edge.
...
Programming defensively with knowledge of the ROM quirks, this seems a
safer bet.
2020-09-11 15:50:15 -05:00
Andrew Makousky
3079bd621f
Write automated test suite, 8 MHz clock, code cleanup.
2020-09-11 15:35:07 -05:00
Andrew Makousky
2bce9ed244
Finished test bench implementation, fixed firmware bugs found during
...
simulation, document technical limits.
2020-09-10 05:07:27 -05:00
Andrew Makousky
6c1b2ba7d9
Fix bug with calling decodePramCmd(), improve comments.
...
Other minor code cleanup.
2020-09-05 18:50:28 -05:00
Andrew Makousky
6328347304
Improve MacRTC.c file header.
2020-09-05 18:04:06 -05:00
Andrew Makousky
043f815c4c
Be defensive with holding RTC output on last cycle.
2020-09-05 17:48:46 -05:00
Andrew Makousky
e2483ddd59
Remove unnecessary pull-ups on inputs, open-drain output.
2020-09-05 15:49:53 -05:00
Andrew Makousky
652aab70ab
Formatting improvements.
2020-09-05 15:10:28 -05:00
Andrew Makousky
bb3bc8bc62
Strip down to the bare minimum interrupt disables.
...
This will hopefully prevent potential issues of not being able to update
the 1-second counter correctly.
2020-09-05 15:03:04 -05:00
Andrew Makousky
76760be8e6
Several improvements after testing.
...
* Convert to C.
* Add simavr test/debug code.
* Fix/improve 1-second timer pin.
* Do not modify lastSerClock in clearState().
* Add pin change interrupt for serial clock, sleep during serial clock
edges, build out PCINT0 ISR to handle watching for multiple pin
changes on the same ISR.
2020-09-05 14:56:08 -05:00
Andrew Makousky
9fe3c780dd
Change to C source file, add simavr debug code.
2020-09-05 02:50:55 -05:00