Commit Graph

103 Commits

Author SHA1 Message Date
Andrew Makousky 665856cfc0 RTC: Add missing watch/unwatch 1-second pin. 2020-09-17 05:43:14 -05:00
Andrew Makousky de2b6f70ca RTC: Add test script capabilities.
Command line help, firmware filename is now optional.
2020-09-17 05:22:29 -05:00
Andrew Makousky 655c495bb3 RTC: Implement missing links for physical test mode.
Also minor refactoring.
2020-09-17 04:25:57 -05: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 c36265d2da Testing improvements.
* Fix deadlock condition due to improper mutex lock use.

* Refactor and improve test suite result reporting.

* Add echo command.

* Do not print prompt character and help message in scripted mode.
2020-09-13 18:31:38 -05:00
Andrew Makousky 08efc91131 Testing improvements.
* Add Raspberry Pi GPIO support functions.

* Add timestamps to the test suite.

* Add information on required headers for each module of the test
  software.
2020-09-12 15:11:53 -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 93edc73c2a Add option to skip XPRAM tests. 2020-09-11 16:01:00 -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 1d36abf470 Refactor test-rtc.c for more modular layout.
Yes, a more modular layout, albeit the fact that this is still but one
single source file.  However, this reorganization will better
facilitate breaking this up into module files.
2020-09-10 14:38:09 -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
Andrew Makousky 1e91a8b426 Finally feature-complete code for ATTiny85 RTC.
The code compiles, but there is NO GUARANTEE it is actually functional.
The code still needs to be tested and could use a bit of careful reading
code review to certify that it does not contain errors.
2020-09-04 22:49:17 -05:00
Andrew Makousky d18cff3e80 Add public domain release notice to MacRTC.cpp. 2020-09-04 17:29:06 -05:00
Andrew Makousky fd916b3d5c Eliminate arduino_sdef.h, add Group data addresses, other cleanup. 2020-09-04 17:21:25 -05:00
Andrew Makousky 1f8d0f8163 Fix a bunch of issues with ATTiny85 RTC implementation.
Decouple from Arduino libraries, use a small header file instead.
Now compiles with plain avr-gcc.  Still needs more work.
2020-09-04 06:28:46 -05:00
Andrew Makousky 097581b80a Reference Google drive parent directory. 2020-09-01 23:01:44 -05:00
Andrew Makousky b4c3ebd32a Add shipping cardboard box design. 2020-09-01 00:51:49 -05:00
Andrew Makousky 83e915f885 Symlink for macse. 2020-08-26 17:04:57 -05:00
Andrew Makousky 86767719c7 Remove placeholder README.md, use submodule instead. 2020-08-26 16:34:10 -05:00
Andrew Makousky ba54302d2b Plan out big audacious Macintosh family designs goal. 2020-08-26 16:28:15 -05:00
Andrew Makousky 4b8dad3033 Note reserved status of "*EAREN" signal. 2020-08-10 14:33:54 -05:00
Andrew Makousky 9e63683576 More likely 1/6W.
Compare with PSU schematic and the blurry message looks more convincing.
2020-08-09 14:12:23 -05:00
Andrew Makousky 6ca3b92810 Document "*EXT.DTK" signal properly.
PDS slot pinouts have now been verified, remove TODO note.
2020-08-08 19:05:41 -05:00
Andrew Makousky 1a65308a45 Do not link/commit the PDF. 2020-08-08 00:01:23 -05:00
Andrew Makousky 7352d25cb2 Retrace looking really good now, more text facts added. 2020-08-07 23:11:53 -05:00
Andrew Makousky 217bf4e835 Fill in note line based off of similar schematic. 2020-08-07 06:23:16 -05:00
Andrew Makousky 7d7a495cae Comments on BBU functions and signal discipline. 2020-08-07 04:48:07 -05:00
Andrew Makousky 3295dde1f7 It's an F, not a 2. 2020-08-07 02:39:24 -05:00
Andrew Makousky 02000977b7 Fix ER -> BR CPU signal name. 2020-08-07 01:46:47 -05:00
Andrew Makousky 42d38b913a Right, not left. 2020-08-07 01:04:44 -05:00
Andrew Makousky 1672ca79bd Fix RAM jumper text. 2020-08-06 23:09:36 -05:00
Andrew Makousky b2a8715ead Remove red markers after verifying logic of F257 A lines. 2020-08-06 21:48:54 -05:00
Andrew Makousky a96a03d889 Fix errors on F257 address labels. 2020-08-06 21:11:22 -05:00
Andrew Makousky 7472497a96 Placeholder for bare MLB PCB photos source. 2020-08-06 19:33:46 -05:00
Andrew Makousky f9e7b41038 Correct refences to page 2 and 3. 2020-08-06 18:56:36 -05:00
Andrew Makousky 0de2c69b3b Correct pinout of RAM SIMMs. 2020-08-06 18:45:12 -05:00