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
Solved! Go to Solution.
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.
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!
----------------------------------------------------------------------------------------------------------------------
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.
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!
----------------------------------------------------------------------------------------------------------------------