Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to exit form Interrupt to main() using Cortex m3

Status
Not open for further replies.

blonskey

Newbie level 1
Newbie level 1
Joined
Mar 25, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
Hi

I am devloping on Cortex m3 and I got into a aituation that while handling Interrupt I want to return to main() and forgte about the fact that i need to return to deal with the rest of the code where the interrupt stoped me.

how shell I implement it in code?


Thanks
 

If you are using the ST cortex part.

Clear the interrupt flag.

For example USART, you use

USART_ClearITPendingBit(USART2, USART_IT_RXNE);

Other peripherals will have something similar. You should read the RM0008 or RM0032 as this will describe it in more detail. There will be something similar for the Philips and Texas parts.
 

    blonskey

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top