Calculator key matrix
If a key is pressed, a cell in the matrix connects two pins together. So by scanning one side of the matrix and reading the values of the other side of the matrix, we can found out which key is pressed. As this will only happen when the key is pressed, we can use interrupts.
This doesn’t work for the sliders and the printer-toggle button. But these also have quite a complex system to now what value is displayed so not a lot of pins are used.
Keys
Pin and key numbers correspond to the VFD pins and the key numbers as depicted on the insides page.
Pin 7+11 | Pin 9+20 | Pin 13 | Pin 15 | Pin 22 | Pin 24 | Pin 25 | Pin 16 | |
Knop 2 | ||||||||
Knop 3 | ||||||||
Knop 4 | ||||||||
Knop 5 |
Sliders
The sliders are always in a particular state, so we just want to scan them if we need to. All sliders have one setting that doesn’t correspond with any matrix value. This is the “default” value that should be set if no value is found. Pin numbers correspond to the IC pin numbers.
Pin 18 | Pin 19 | Pin 20 | Pin 21 | Pin 18+21 | Pin 20+21 | |
Pin 24 | F | + | 2 | 1 | 3 | |
Pin 23 | ||||||
Pin 22 | n+ | n+/- |
As the pin connections use diodes, the flow should be from pins 18-21 (V+) to pins 22-24 (V-).