This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

comprehension question Timer

Hi,

maybe i have a silly question, but i didn't programm timers before. I know how they work. But how is it possible that there are only three Timers in the 51822 and so many parts of the programm part (PWM,BLE,GPIOTE...) which need a timer? How can i organize my timers?

and is it possible to run one timer and write a function like "get_actual_time" which gives me the time in the moment i call the function?

Best reagards, Nils :)

Parents
  • This is for sure the best post I found related with timers explanations in this forum. I'm trying to work with timers with a nRF51822 BLUETOOTH SMART BEACON KIT but I'm not able to make it work well. I get the date as I want ( I haven't programmed timers at this level before) but I haven't modified any timer in the example provided with the kit. The problem is that I use strftime call to get the time in the format I want but the hours pass like seconds and the minutes and seconds... really fast. I think that maybe the timer RTC0 is used for another task and there is a conflict with it. I don't know well how can I check in order to modify the code to get the date as I want to.

    Regards.

    Iván Gómez.

Reply
  • This is for sure the best post I found related with timers explanations in this forum. I'm trying to work with timers with a nRF51822 BLUETOOTH SMART BEACON KIT but I'm not able to make it work well. I get the date as I want ( I haven't programmed timers at this level before) but I haven't modified any timer in the example provided with the kit. The problem is that I use strftime call to get the time in the format I want but the hours pass like seconds and the minutes and seconds... really fast. I think that maybe the timer RTC0 is used for another task and there is a conflict with it. I don't know well how can I check in order to modify the code to get the date as I want to.

    Regards.

    Iván Gómez.

Children
No Data
Related