Altera_Forum
Honored Contributor
17 years agoLED no reaction after successfully loading lights.c into the cyclone II
Hi, guys,
Thank to the previous help from you, finally I managed to load the c program into the cyclone II using Altera Monitor Program without any error message.... The program is as follows: #define switches (volatile char *) 0x0001800# define leds (char *) 0x0001810void main()
{ while (1)
*leds = *switches;
} it is supposed to "load the addresses of the Data registers in the two PIOs into processor registers r2 and r3. It then has an infinite loop that merely transfers the data from the input PIO, Switches, to the output PIO, LEDs." according to the sopc introduction tutorial... however, the no matter how i tilt the switches on the board, the LED never turns on! How could this be? Thanks and regards