Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

MSPM0C1103: MSPM0C1103: Microcontroller freezing when reading two A/D ports

Part Number: MSPM0C1103

Hi srs,

We are using the MSPM0C1103 microcontroller to read two ADC ports.
However, we have identified an operational stability issue.
In a batch of 200 units, 60% function correctly, while 40% experience an application freeze when reading the second ADC port.
The firmware is identical across all units. We have also determined that this freezing issue in the 40% of units occurs only when reading more than one ADC port; if we modify the firmware to read from a single ADC port, the microcontrollers function correctly in 100% of cases.

The firmware is quite simple and follows standard recommendations, yet it still works on only 60% of the chips.
Part of the code follows below.

#include "ti_msp_dl_config.h"

volatile uint32_t Timer_REM_TX = 0, Timer_falha = 0, Timer_Bit = 0;
volatile bool gCheckADC = 0;

uint16_t gAdcResultFinal[2] = {0,0};


int main(void)
{
    SYSCFG_DL_init();

    NVIC_EnableIRQ(TIMER_0_INST_INT_IRQN);

    DL_TimerA_startCounter(TIMER_0_INST);

    NVIC_EnableIRQ(TIMER_1_INST_INT_IRQN);

    DL_TimerG_startCounter(TIMER_1_INST);

    DL_GPIO_setPins(GPIOA, TX_MED_PIN_11_PIN);

    DL_ADC12_startConversion(ADC12_0_INST);

    while (1) {

        // Aguarda a conversão anterior terminar via polling de hardware
        while (!(DL_ADC12_getRawInterruptStatus(ADC12_0_INST,      DL_ADC12_INTERRUPT_MEM1_RESULT_LOADED)));

        gAdcResultFinal[0] = DL_ADC12_getMemResult(ADC12_0_INST, DL_ADC12_MEM_IDX_0);
        gAdcResultFinal[1] = DL_ADC12_getMemResult(ADC12_0_INST, DL_ADC12_MEM_IDX_1);
   
        .....
    }
    
}