A simple question - if using the nrfx timer library how do I set a timer prescaler?
I'm using timers 3 & 4 in compare/capture mode to measure pulse widths (not the application timer)
A simple question - if using the nrfx timer library how do I set a timer prescaler?
I'm using timers 3 & 4 in compare/capture mode to measure pulse widths (not the application timer)
Hi,
The prescaler is set by the frequency parameter in the config that you pass to nrfx_timer_init(). I should be set to one of the frequnecies defined in nrf_timer_frequency_t.
PRESCALER register is set by the HAL function nrf_timer_frequency_set(), which is called in nrfx_timer_init().
Best regards,
Jørgen
The legacy API configs will overwrite NRFX configs in apply_old_config.h if the legacy config is defined, regardless of if it is set or not. You need to completely remove the legacy configs from the sdk_config.h file in order for the NRFX configs to not be overwritten.
The legacy API configs will overwrite NRFX configs in apply_old_config.h if the legacy config is defined, regardless of if it is set or not. You need to completely remove the legacy configs from the sdk_config.h file in order for the NRFX configs to not be overwritten.