AnsweredAssumed Answered

MKL15Z128VFM4 LLWU wakeup pin

Question asked by genius gogo on Jan 13, 2017
Latest reply on Jan 16, 2017 by Jorge Antonio Alcala Vazquez

my board used LPTMR and PTC3 wakeup the LLWU mode on VLPS,

LPTMR able wakeup,

PTC3 can't wakeup,

What causes it?

init code:

llwu_external_pin_filter_mode_t filterMode;

pin_config.pinDirection = kGPIO_DigitalInput;
pin_config.outputLogic = 0;

// MCU wakeup pin
GPIO_PinInit(GPIOC, 3, &pin_config);

/* Setup LPTMR. */
LPTMR_GetDefaultConfig(&lptmrConfig);
lptmrConfig.prescalerClockSource = kLPTMR_PrescalerClock_1; /* Use LPO as clock source. */
lptmrConfig.bypassPrescaler = true;
lptmrConfig.enableFreeRunning = true;
LPTMR_Init(LPTMR0, &lptmrConfig);
LPTMR_EnableInterrupts(LPTMR0, kLPTMR_TimerInterruptEnable);
LLWU_EnableInternalModuleInterruptWakup(LLWU, 0, true);
// setup external PTC3 pin
LLWU_SetExternalWakeupPinMode(LLWU, 7, kLLWU_ExternalPinAnyEdge);
NVIC_EnableIRQ(LLWU_IRQn);
NVIC_EnableIRQ(LPTMR0_IRQn);

......

 

sleep ongo:

LPTMR_SetTimerPeriod(LPTMR0, 60000);
LPTMR_StartTimer(LPTMR0);
LLWU_SetExternalWakeupPinMode(LLWU, 7, kLLWU_ExternalPinAnyEdge);
SMC_SetPowerModeVlps(SMC);

Outcomes