Make CCDS2.CCDS4 high or inputs to prevent anything from showing in digits 2.4ģ) make the LED1L and LED2L lines high or inputs to prevent anything from showing in the lamp field.ĥ) Wait 400uS or execute an Enigma encoding task that takes less than that time to execute.Ħ) Make all the segments 1 in preparation to read the keyboardħ) Make 1 segment low, start with A1, on next iteration, select A2.ġ1) repeat step 1, but activate CCDS2 to illuminate the second 16 segment digit. In order to control the brightness difference between letters with a lot of segments and letters with few segments, this task can be subdivided in two by putting the bit pattern for 8 segments first, then putting the pattern for the other 8 segments.Ģ) make the CCDS1 line active low to illuminate the first 16 segment digit. Here is the algorithm to illuminate and read all of the devices (although not at the same frequency)ġ) put the correct bit pattern on A. Other lines may not have anything connected on LED2L, KEY2L or UPDNL (schematic made with the Klunky Schematic Editor ) Here is a detailed schematic for one row, pin 3 is selected because it has 6 devices. The lampfield can be treated like another sixteen segment displays and if needed, multiple lamps can be lit simultaneously. The keyboard can be read one key at a time when switching from one sixteen digit display to another. The 16 segment displays need to be driven more frequently to eliminate flicker. There are a lot of different devices on each pin, but that is solved in software by controlling each device at a different frequency. This simulator uses a fairly conservative multiplexing design to light up the LED and read the keys. Each LED and switch on this board can be uniquely addressed with two microcontroller pins. The pin assignments have been traced and double checked.
0 Comments
Leave a Reply. |