NP-41 Emulator (may be)
|
03-09-2016, 06:21 PM
Post: #177
|
|||
|
|||
RE: NP-41 Emulator (may be)
(03-09-2016 03:35 PM)Harald Wrote: Hi Chris, I did not properly draw a schematic, I just used Fritzing to "draw" the PCB using it's manual trace routing. Here is a simplified schematic for a 5 pin key multiplexer to illustrate the connection and scanning, it yields 4 + 3 + 2 + 1 keys. In the firmware I start by placing pin 0 (say from top) as output set to high, pin 1, 2, 3, 4 as input w/ pull-down to low. And I would scan for the 4 input pins to see any of the 1st row keys has been hit. On the next scan cycle I would place pin 1 as output to high, and scan for pin 2, 3, and 4. I won't scan pin 0 here as it was done in the last scan cycle. Likewise on the next can cycle we can the next row w/ one fewer inputs / buttons. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)