matrixofdynamism
Advanced Member level 2
- Joined
- Apr 17, 2011
- Messages
- 593
- Helped
- 24
- Reputation
- 48
- Reaction score
- 23
- Trophy points
- 1,298
- Activity points
- 7,681
I have a small matrix keypad encoder design that I wish to test on my FPGA board. I shall make a matrix keypad on a seperate PCB and connect it to the GPIO socket of the DE-115 board. It has a Cyclone IV on it.
In the design, all the inputs to the encoder are pulled high by default. These inputs come from "columns" of the keypad. The FPGA pulls one "row" low at a time and cycles through every all 4 rows on the 4x4 keypad in sequence. The row, not driving low is driven high. When a key is pressed, the row and column are shorted together this if the key is on a row which is pulled low by the FPGA, the column input corresponding to it on the FPGA shall go low too.
Is it safe to use external pull up to 5V with Cyclone IV? What options do I seleect in the GUI to make the design aware of this?
The FPGA may also be driving a pin which is pulled high. What resistance value should I use? Is this safe?
In the design, all the inputs to the encoder are pulled high by default. These inputs come from "columns" of the keypad. The FPGA pulls one "row" low at a time and cycles through every all 4 rows on the 4x4 keypad in sequence. The row, not driving low is driven high. When a key is pressed, the row and column are shorted together this if the key is on a row which is pulled low by the FPGA, the column input corresponding to it on the FPGA shall go low too.
Is it safe to use external pull up to 5V with Cyclone IV? What options do I seleect in the GUI to make the design aware of this?
The FPGA may also be driving a pin which is pulled high. What resistance value should I use? Is this safe?