- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page