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/MSP430FR2311: software reset is occurrred in timer interrupt service routine

Part Number: MSP430FR2311

Tool/software: Code Composer Studio

hi, I have problem in using timer.

I'd like to get a ADC data when PWM pulse is occurred.

so, I used OUTMOD7(Reset/set) of Timer B1 to make  PWM pulse( 668kHz, 30%duty rate) and ADC data reading time is 60us(16.7kHz).

However, There is problem that program is reset when ADC data reading period in ISR was longer than PWM period.

As far as I know "COV" register make software reset when capture overflow is occured but I do not use capture but compare.

One more thing... Is there are way to use timer interrupt flag's change without using  ISR?

This is my code. I'd like to use this code  without ISR, but program was stacking in "JMP __TI_ISR_TRAP" during debug.

please help me.

        if((TB1CCTL1 &= CCIFG) == 1)
        {
           TB1CCTL0 &= ~CCIFG;
           __delay_cycles(10);

            ADC_OSC_SamplingConversion();
        }



  • Hello,

    hyeongjin jang said:
    However, There is problem that program is reset when ADC data reading period in ISR was longer than PWM period.

    Don't you have to ensure the ADC read time is shorter than the PWM pulse generation rate if you are trying to get an ADC data each time you have a PWM pulse?

    Srinivas