USART character received interrupt

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do you set up an ISR for receiving characters on USART2? The documentation is sorely lacking here. I found https://www.avrfreaks.net/index.p... this thread, but it still leaves a lot of unknowns (e.g. which USART is it for).

I know I need to use the INTC driver. I need to call INTC_init_interrupts and then INTC_register_interrupt, but I don't understand the 2nd argument in INTC_register_interrupt. Is this a vector address? Where is it documented? What do I use for the USART2 receive interrupt? Is there something else I need to call to enable the interrupt, or is it just these 2 functions?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The 2nd argument of INTC_register_interrupt is the interrupt line to register to (eg something like AVR32_USART2_IRQ_0)

-sma