Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Interrupt handling

Hi,

I connected a counter pin to the PIO in order to generate IRQ every 256 cycles. Appropriate IRQ handler is called after the interrupt triggers. However, after handling the interrupt, the alt_irq_handler stays in the loop because ipending is still set. So, how shall I clear the interrupt request ?

Best regards,

Joel

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Can you please write how you solved the problem?

    thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In the handler routine reset the edge register by writing 0 to it or ones ( ones didnt work for me but the manual states it) in dependence of PIO configuration.

    regards