Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

How to use the niosii interrupt service program

Altera_Forum
Honored Contributor II
1,336 Views

How to use the niosii interrupt service program,where are there example???

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
621 Views

Please see the count_binary example. It registers an interrupt handler for the buttons which change the way it counts.

0 Kudos
Altera_Forum
Honored Contributor II
621 Views

thank!!!!!

0 Kudos
Altera_Forum
Honored Contributor II
621 Views

i use this example but the interupt can not responde 

when i press the button but the led can not change
0 Kudos
Altera_Forum
Honored Contributor II
621 Views

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 == &#39;c&#39;) // <-- set breakpoint here
0 Kudos
Reply