I know that nrf51822 is not supported system tick handler ? I need system tick function. How can i make system tick function for nrf51822?
I know that nrf51822 is not supported system tick handler ? I need system tick function. How can i make system tick function for nrf51822?
Thank you for your code. I will check the code.
Remember that a 16 MHz crystal is required for radio operation. However, timers can also run on the internal 16 MHz RC oscillator.
I'd also be happy if you could accept one of the answers, to clear up the discussion. :-)
@Philip As you inform to me, I saw RTC1_ms_timer.c registering on thread that you link. but, I don't have head file, nRF51_PF_Lib.h. Is this header same as nrf51.h file?
Altough I replace nrf51_PF_Lib.h to nrf51.h, the compiler don't find follow define variables : CLOCK_LFCLKSRC_SRC_RC, CLOCK_LFCLKSRC_SRC_Pos, RTC_EVTENSET_TICK_Enabled, RTC_EVTENSET_TICK_Pos, RTC_INTENSET_TICK_Enabled and RTC_INTENSET_TICK_Pos.
Where can these be finded?
@Philip As you inform to me, I saw RTC1_ms_timer.c registering on thread that you link. but, I don't have head file, nRF51_PF_Lib.h. Is this header same as nrf51.h file?
Altough I replace nrf51_PF_Lib.h to nrf51.h, the compiler don't find follow define variables : CLOCK_LFCLKSRC_SRC_RC, CLOCK_LFCLKSRC_SRC_Pos, RTC_EVTENSET_TICK_Enabled, RTC_EVTENSET_TICK_Pos, RTC_INTENSET_TICK_Enabled and RTC_INTENSET_TICK_Pos.
Where can these be finded?
Do not replace nrf51.h , you need it.
Replace the #include "nrf51_PF_Lib.h" with this:
extern uint32_t RTC1_Milliseconds; extern uint32_t RTC1_Seconds;