Oscar is right in claiming elsewhere that a test program for the PiDP-11/70 lights and switches is not really needed. If you follow his instructions for building the PiDP-11, you will get an early indication of success or failure.
Not withstanding, I have attached a stand-alone test program written in Python, written mostly because I wanted to build my Python skills a little. This program is slow and pedantic (like its author) - it does not take shortcuts, or do anything clever, or invoke high-flying Python syntax. As such, it should be fairly easy to follow.
At this stage, the program only performs positive tests, i.e. it invokes what should be correct behaviour with correct stimuli.
Everything works as expected, EXCEPT for testing of the rotary encoders. This is because they do not work as I expected. I expected that the switches would put out a steady sequence of I/Q (in-phase/quadrature) indications, e.g. AA, AB, BB, BA in one direction, and AA, BA, BB, AB in the other direction. It appears that instead they put out an I or Q -pulse- for each change of position. Meaning that I have to look for momentary indications, not steady ones. This screws up my simplistic approach to testing.
Operating instructions can be found in the accompanying PDF document or by using the -h or --help command line option.
Observe carefully the Licence provisions.
Comments and suggestions are welcome.
Rotary encoder testing now works.
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/ab1e3456-2a6d-4251-88d4-e9307b36940b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Neil,Great! Can I add this to the web site with proper attribution?
The sense of the reported switch data seems inverted to me. When switches are in their normal or non-active position, you report a value of 1. I would prefer that switches in their normal or non-active position be reported as a 0 and be reported as a 1 when they are up or active. I think this would more closely mimic the operation of the switches, at least for the address/data switches.
But, all that being said, your program is very useful and I recommend it for final testing.
Regards,
Garry