Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
Please see the count_binary example. It registers an interrupt handler for the buttons which change the way it counts.
- Altera_Forum
Honored Contributor
thank!!!!!
- Altera_Forum
Honored Contributor
i use this example but the interupt can not responde
when i press the button but the led can not change - Altera_Forum
Honored Contributor
please tell a little bit more,
what version of quartus, nios, hardware are you using can you start the proram in debugger ? can you set a breakpoint in the interrupt ? does it enter the interrupt routine ? static void handle_button_press(alt_u8 type, FILE *lcd) { /* Button press actions while counting. */ if (type == 'c') // <-- set breakpoint here