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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

How to use the niosii interrupt service program

Altera_Forum
Honored Contributor II
1,356 Views

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

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
641 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
641 Views

thank!!!!!

0 Kudos
Altera_Forum
Honored Contributor II
641 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
641 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