AnsweredAssumed Answered

How make FRDMKL25Z RTC works

Question asked by Sergio Saucedo on Mar 9, 2018
Latest reply on Mar 12, 2018 by Sergio Saucedo

I'm trying to use the RTC on the FRDMKL25Z, but it doesn´t work propertly, the only way can the RTC works is whit the 1kHz LPO clock, but the second regiter changes every 32.768 seconds whit this lines of code:

 

/* Enable the RTC 32KHz oscillator */
SIM->SOPT1 &= ~SIM_SOPT1_OSC32KSEL_MASK;
SIM->SOPT1 |= SIM_SOPT1_OSC32KSEL(2); // 1kHz LPO

 

I need the second regiter changes every second but I can't make it, does any one help me?

 

I'm using:

MCUXpresso IDE v10.1.1

KL25Z-SDK v2.2 

Outcomes