Forum Discussion
Altera_Forum
Honored Contributor
16 years agoPIO LEDs always on
Hello, i have a NiosII sopc with a PIO[24] called LED. It is connected to the LEDs on the DE3 board. now i have a simple application : # define LED_BASE 0x00041010 // this is the base i...
Altera_Forum
Honored Contributor
16 years agoin sopc the LEDs are only output.
In Quartus i have a Blockdiagram with the nios-system and outputs connected to the leds (in the pin assignment they are connected as well) the Blockdiagramm is set as top level entity. Another thing i tried is this:# define Buttons (volatile char *) 0x00040000# define LEDs (char *) 0x00041010
void main()
{ while (1)
*LEDs = *Buttons;
} Nothing happens... And another question, i have all unused pins set as input. there is a 7-segment display on the board which i do not use. but two of the lighsts are on.. how can this be?