Forum Discussion
Altera_Forum
Honored Contributor
15 years agopush_button irq handler question
Hi, I use NEEK CycloneIII (CP3C25). App is quite simple it turns on the led corresponding the push button pressed (see code below). I copied irq handler procedure from standard binary_counter.c ...
Altera_Forum
Honored Contributor
15 years agoAlso, the main program seems to copy the 'edge capture' value to the leds whenever the value is non-zero. This may not be what you had in mind!
Once set, nothing probably zeros it either. Outputting a counter to the leds might be more informative.