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 agoTry including "altera_avalon_pio_regs.h" and use the macros defined here in order to control pio. Also, you'd better use xx_PIO_BASE defines (see system.h) instead of raw numeric address . You'll have a more portable code, indipendent of changes you possibly make in sopc builder.
Maybe a silly question: is pio correctly connected to fpga output pins in your Quartus design? Regards