I use sdk 15.3.0 / nrf52832 / SD_132.
How to use the prescaler of a timer for an event every 24 hours ?
An example will be very explicit.
Best regards, Jiemde
I use sdk 15.3.0 / nrf52832 / SD_132.
How to use the prescaler of a timer for an event every 24 hours ?
An example will be very explicit.
Best regards, Jiemde
Hi Karl, Thanks for fast reply.
I'm not yet "comfortable" with sdk.config, so for the "BITMODES", I suppose you speak about:
// <o> TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
// <0=> Timer
// <1=> Counter
#ifndef TIMER_DEFAULT_CONFIG_MODE
#define TIMER_DEFAULT_CONFIG_MODE 0
#endif
// <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
// <0=> 16 bit
// <1=> 8 bit
// <2=> 24 bit
// <3=> 32 bit
#ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
#define TIMER_DEFAULT_CONFIG_BIT_WIDTH 3
#endif
Question: where can I set the timer prescaler ?
Is there an example for references ?
Best regards
Jiemde
Hello Jiemde,
Jean-marie said:I'm not yet "comfortable" with sdk.config
I completely understand, no problem at all.
Have you seen the TIMER API Reference? Particularly, bit_width is set during initialization - see the input parameters to the nrfx_timer_init function.
I think this is what you are looking for, rather than the sdk_config.h. The lines you are referring to in the sdk_config is the DEFAULT_CONFIG parameters.
Is this what you were looking for?
Please let me know if you should have more questions or encounter any other issues! :)
Best regards,
Karl
Hello Jiemde,
Jean-marie said:I'm not yet "comfortable" with sdk.config
I completely understand, no problem at all.
Have you seen the TIMER API Reference? Particularly, bit_width is set during initialization - see the input parameters to the nrfx_timer_init function.
I think this is what you are looking for, rather than the sdk_config.h. The lines you are referring to in the sdk_config is the DEFAULT_CONFIG parameters.
Is this what you were looking for?
Please let me know if you should have more questions or encounter any other issues! :)
Best regards,
Karl