Forum Discussion
Altera_Forum
Honored Contributor
15 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.