Forum Discussion
Altera_Forum
Honored Contributor
19 years agoSetup an IRQ on a component
Hi , I made a "counter" component which I want to interrupt NIOS when reaching 8'h7. I also created a control register in which is bit IRDY (Interrupt Ready) I have 2 questions fo...
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by soin@Sep 20 2006, 02:29 PM hi,
are you sure your component generate interupt?is your uart working well?you could try to set a variable, checking it in the main loop, and printf through uart-jtag or uart, using the hal library instead of writing register...
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18357)
--- quote end ---
--- Quote End --- Hi Soin, > are you sure your component generate interupt?# ## Yes , I am. I checked intr pin. It does go high whenever the counter reaches 7. > is your uart working well?You could try to set a variable, checking it in the main loop, and printf through uart-jtag or uart, using the HAL library instead of writing register...# ## Yes , my UART is working well. I tested it in a seperate project by using this function in HAL library : IOWR_ALTERA_AVALON_UART_TXDATA( UART1_BASE , 'Y' ); After testing these stuff , I assign intr pin to irq in component editor , signal tab ; then recompile the System , Quartus project and NIOS IDE program but things are not better. Have I got some steps missed ? Thank you , Quan