Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

GPIO pin questions

Altera_Forum
Honored Contributor II
1,135 Views

Hi, I am quite new with Altera's DE2 board and am programming with verilog. I want to know if it is possible to use the jp1/jp2 pins on the board as inputs to trigger an event. Say a switch to turn on one of the board's LED.  

 

I followed the pin assignments on the manual and it works for output but having problems getting inputs to work. Can someone help me with this issue? Thanks.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
446 Views

Hi nerfbag, 

 

I do not know about jp1/jp2 pins on the DE2 board. Please be more specific which pins you are refering to. 

 

 

--- Quote Start ---  

I want to know if it is possible to use the jp1/jp2 pins on the board as inputs to trigger an event. Say a switch to turn on one of the board's LED.  

--- Quote End ---  

 

 

Maybe you are refering to the GPIO_0 and GPIO_1 general purpose input output ports. In that case, the answer is: Yes! Nearly all of the pins can be used as inputs for the purpose you are refering to. 

 

Hope this helps...
0 Kudos
Altera_Forum
Honored Contributor II
446 Views

JP1 and JP2 are in fact the DE2 GPIO connectors. All you have to do is to assign an GPIO pin to the respective input port of your design.

0 Kudos
Altera_Forum
Honored Contributor II
446 Views

Hi, very appreciate for the replies. Yes i am referring to the GPIO pins, I have assigned them properly and have tested the output, just not very sure as to how the input is applied. I want to make a water sensor using a magnet to activate the switches as the water level rises. I got the program to move from state to state when the assigned pins sees a GND, but the thing is I think the pins are overly sensitive. When i attatch a free standing wire to test the pins, the state switches just by touching them even with my fingers. Is there a way to avoid this? 

 

Thanks 

Greg
0 Kudos
Reply