AnsweredAssumed Answered

mk60dn512 low voltage warning

Question asked by nan liu on May 16, 2017
Latest reply on May 17, 2017 by Robin_Shen

const pmc_low_volt_detect_config_t lvd ={
    false, false, kPMC_LowVoltDetectLowTrip
};
const pmc_low_volt_warning_config_t lvw ={
    true,  kPMC_LowVoltWarningHighTrip
};
const pmc_bandgap_buffer_config_t bf ={ false,false};
 
PMC_ConfigureLowVoltDetect(PMC, &lvd);
PMC_ConfigureLowVoltWarning(PMC, &lvw);
PMC_ConfigureBandgapBuffer(PMC, &bf);

 

EnableIRQ(LVD_LVW_IRQn);
void LVD_LVW_IRQHandler(void){
     PRINTF("LVW");
     pmc_low_volt_warning_config_t pmc_config;
     PMC_ClearLowVoltDetectFlag(PMC);
     GPIO_ClearPinsOutput(PTB,1<<23);
     pmc_config.enableInt = false;
     PMC_ConfigureLowVoltWarning( PMC, &pmc_config );
    
}

 

 We do not appear to be generating Low-Voltage Warning Interrupts

Attachments

Outcomes