Forum Discussion
Altera_Forum
Honored Contributor
16 years agoUsing the GPIO_0 (JP1) on DE2 board.
Hi I am building a robot and want to use the DE2 board to control a circuit, i want to use one of the pins on the GPIO_0 36pin port. When i press the KEY0 it should make the pin i choose active...
Altera_Forum
Honored Contributor
16 years agoI only asked if you are sure your problem is related to C code. In other words, are you sure the system is ok?
Namely: Is sopc pio port is connected to correct target fpga pins in the Quartus project? Have you tried to change the state of other pins of the pio port? Do they work? Is Key input read correctly? One more suggestion: Try use IO_RD(base,offset) instead of int* pointers; I remember had a similar problem once and I solved it this way.