This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430F169: Problems with interupt flag beeing set

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

**Attention** This is a public forum