Forum Discussion

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

how can I use HSP GPIO interrupt

I just want a simple example about how to use the gpio interrupt. My problem is that I can't get the gpio interrupt map in http://www.altera.com/literature/hb/cyclone-v/cv_54006.pdf page6-12.

Does the gpio controller share the interrup number with other peripherails?

2 Replies

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

    --- Quote Start ---

    I just want a simple example about how to use the gpio interrupt. My problem is that I can't get the gpio interrupt map in http://www.altera.com/literature/hb/cyclone-v/cv_54006.pdf page6-12.

    Does the gpio controller share the interrup number with other peripherails?

    --- Quote End ---

    Sorry for the question. I have found it in the pdf document!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In case others have the same question, in that document you'll find the generic interrupt controller (GIC) IRQ mapping. Each GPIO has it's own dedicated interrupt line so it's just a matter of making sure the GIC is configured properly to listen for a particular GPIO interrupt, and setting up the GPIO peripheral to generate interrupts as well.