mk60dn512 low voltage warning

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mk60dn512 low voltage warning

Jump to solution
797 Views
liunan
Contributor I

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

0 Kudos
1 Solution
641 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi liu,

Test the code with SDK_2.2_MK60DN512xxx10 on TWR-K60D100M board.

It generat Low-Voltage Warning Interrupts.

The PTB23 can output low voltage and Blue LED can light.

LVW.png

You can test the project attached. (...\SDK_2.2_MK60DN512xxx10\boards\twrk60d100m\user_apps\driver_examples-uart\interrupt)

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
642 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi liu,

Test the code with SDK_2.2_MK60DN512xxx10 on TWR-K60D100M board.

It generat Low-Voltage Warning Interrupts.

The PTB23 can output low voltage and Blue LED can light.

LVW.png

You can test the project attached. (...\SDK_2.2_MK60DN512xxx10\boards\twrk60d100m\user_apps\driver_examples-uart\interrupt)

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------