AnsweredAssumed Answered

KL16 sleep current after change an unused pin from output to input

Question asked by Daniele Colucci on Oct 24, 2018
Latest reply on Oct 24, 2018 by Jing Pan


I'm testing a board with KL16. In some cases I noticed that when I change the direction of an unused pin that was an output to 0 and becomes an input, sleep mode consumption changes from 2 uA to 30 -150 uA. I don't know why.

Could somebody help me? Thanks.


/* PTA2 NOT MORE USED - Set as output forced to 0 */
PORTA_PCR2 = (uint32_t)((PORTA_PCR2 & (uint32_t)~(uint32_t)(ORT_PCR_ISF_MASK | PORT_PCR_MUX(0x06))) |

sleep();     /* (it's ok 2uA after sleep) */ 


GPIOA_PDDR &= ~(0x04);

sleep();     /* (KO  30 and more uA after sleep) */