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.

Compiler: MSP430f149

Other Parts Discussed in Thread: MSP430F149

Tool/software: TI C/C++ Compiler

Dear All,

Could you explan to me how can I change this condition for msp430f149?

 TB0CCTL0_bit.CCIFG = 0;

TB0CTL_bit.TBIFG = 0;

or it's automatically for this MSP?

  • Hi Nastya,

    I'm not sure I understand your question. Are you asking how you can reset the CCIFG and TBIFG flags?

    The Capture Compare Interrupt Flag (CCIFG) is automatically set when a capture or compare condition occurs on that particular channel. The CCIFG flag is automatically reset when the interrupt is serviced. If interrupts are not enabled with the CCIE bit, then the flag must be reset via software.

    The TimerB Interrupt Flag (TBIFG) is set when the timer overflows in Continuous mode, or when it reaches the value in CCR0 when in up mode. The TBIFG flag is automatically reset when the interrupt is serviced. However, if interrupts are not enabled with the TBIE bit, then the flag must be cleared by software.

    You can read more about the these flags and TimerB interrupts in section 12 of this devices User's Guide.

    Best regards, 

    Caleb Overbay

**Attention** This is a public forum