我在用KL25 调试低功耗模式LLS这一部分,采用外部中断引脚唤醒,可是一直没有反应,不知道是什么问题,请各位大侠帮我看看配置是否正确。
软件开发工具codewarrior10.5,开发板FRDM-KL25Z,采用PE配置run模式下core clock48MHz,bus clock 24MHz,程序如下:
int main(void)
{
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
SIM_SCGC5 = SIM_SCGC5_PORTD_MASK;
PORTD_PCR6 =(PORT_PCR_ISF_MASK | //clear flag if there
PORT_PCR_MUX(01) | //set pin functionality -GPIO
PORT_PCR_IRQC(0x0A)| //falling edge interrupt enable
PORT_PCR_PE_MASK | // pull enable
PORT_PCR_PS_MASK); // pullup enable
/* Set the LLWU pin enable bits to enable the PORTE1 input
* to be a wake-up source.
* WUPE15 is used in this case since it is associated with PTD6.
*/