Tie pin to interrupt

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

hiddeninthewifi
Posts: 1
Joined: Wed Jun 18, 2014 11:35 pm

Tie pin to interrupt

Fri Jun 20, 2014 1:07 am

Hi,

I'm using an Atmel SAM3U4E board, and I'm trying to get a UART interrupt to function so that I can only call UART reading code (in an ISR) when I get data.

A couple questions:

-Which bit of the ISER (interrupt enable register) do I set -- 1<<14 or 1<<(32-14) or whatever - or in other words, which bit would correspond to interrupt #14 (as this is what UART1 is defined as)

-Once that interrupt is enabled, how do I set it to enter the ISR once the UART receives data?

Any help would be great!

Thanks!

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests