Hi All,
Is macro in /modules/nrfx/hal/nrf_rtc.h correct?
/** @brief Macro for converting expected frequency to prescaler setting. */
#define RTC_FREQ_TO_PRESCALER(FREQ) (uint16_t)(((RTC_INPUT_FREQ) / (FREQ)) - 1)
so for 1000Hz requested it returns 31 which gives 1024Hz but better value is 32 with 992Hz.
It is a typical problem with c rounding down.
Regards,
Pawel