Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/MSP430F169: Problems with interupt flag beeing set

$
0
0

Part Number: MSP430F169

Tool/software: Code Composer Studio

Hello everyone,

I am currently working on an existing Project using a MSP430f169. I am supposed to get the firmware running with ccs 9 and the ti compiler.

I ran into a Problem setting up an Interrupt. Whenenver I setup P2IFG=0; and then enable the interrupt I end up in the interrupt routine. I investigatet this with:

if(P2IFG){blink_led}; -> Blinks

P2IFG=0x00;

if(P2IFG){blink_led}; ->  still blinks...

Port 2 interupt capability is only activated for one pin, should trigger on falling edge and the pin is set high by an external adc.

I have no idea why the interupt flag is always set, although I explicitly set it to 0.

Anyone who had a similar problem or an idea for a solution?

Greetings


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>