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.

MSPM0G3519: MSPM0G3519 - BOR check

Part Number: MSPM0G3519

Tool/software:

Dear, 

I need to wait until my voltage supply is above e.g. 3V before I release uC initialiation routines.

How to implement a 'wait for BORx level'?

"

uint32_t k;
int main(void)
{
// Wait until BOR level is reached
// Code to be elablorated!

for (uint32_t i = 0; i < 16000; i++) k = i + 1; //20ms waiting
SYSCFG_DL_init();

"

  • I would just make sure that the MCU is held in reset until the voltage gets to the proper level, judicious use of the delay might solve the issue.

  • Hi John,

    I recommend reading the BOR Supervisor section of the TRM, currently section 2.2.3.2 Brownout Reset (BOR) Supervisor in the Rev B version. BOR level 3 is what you would want for 3V.

    You can check the NMI for the BOR. What I would do in the NMI is clear the BOR status, wait a bit then check the raw status to see if the BOR is still there, if the BOR is gone then I'd exit the loop and return to main.

    Relevant registers - BORTHRESHOLD and BORCLRCMD in SYSCTL, then the BORLVL interrupt.

    Regards,
    Luke