Hello! I use a 32kHz quartz resonator and I want to interrupt the program after 1 second with a watchdog timer. But when writing to it, 128 I get not 1 but 1.25 seconds. What am I doing wrong?
hal_clklf_set_source(HAL_CLKLF_XOSC32K); // Synthesize 32 KHz from crystal 32K clock - for Wdog!
while(!(CLKLFCTRL & 0x40U)){};
hal_wdog_init(128);
for(;;)