S32K144 RTC use external crystal 32.768KHZ inaccuracy

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 RTC use external crystal 32.768KHZ inaccuracy

1,874 Views
建宽高
Contributor III
  • I use the following configuration

first , i config rtc

pastedImage_1.png

second ,i config  clk_in pin

pastedImage_2.png

third ,i config clk

pastedImage_3.png

it is my code 

/* Initialize RTC instance
* - See RTC configuration component for options
*/
RTC_DRV_Init(RTCTIMER1, &rtcTimer1_Config0);
/* Set the time and date */
RTC_DRV_SetTimeDate(RTCTIMER1, &rtcTimer1_StartTime0);

/* Start the RTC counter */
RTC_DRV_StartCounter(RTCTIMER1);

RTC_DRV_GetCurrentTimeDate(RTCTIMER1, &currentTime);

but i  read inaccuracy time,it run fast.....

Labels (1)
0 Kudos
3 Replies

1,329 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The LPOCLKS[RTCCLKSEL] register is reset only on POR or LVD.

Can you power cycle the MCU?

Thanks,

Daniel

0 Kudos

1,329 Views
建宽高
Contributor III

yes, i can power cycle the mcu,     Can you check my configuration is right?

0 Kudos

1,329 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

If it still doesn't work, please measure RTC CLKOUT.

What frequency do you get?

I don't see any problem in the configuration.

Regards,

Daniel

0 Kudos