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
  • I think this Topic here is pretty interesting for ather perople and newbies how starts programming the chip. To understand what ervy part of the chip does and how it can be programmed is essential for the users.

    I think i understand how to programm th rtc the HFCLK Timer is to programm similar? How to use this compare [] things in the pwm example?

    But i didn't understand how to use schedluing and what it is good for, its a little bit to abstract for me. When i have to use it and when not and what is the main task of the scheduler?

    When i have tu use the PPI and the GPIOTE ? Are they good for relieve the cpu? Or have i to use it also when i just to make a calculation with the cpu and then make an reaction at the output?

    Which timers ar use by the softdevice? Timer 0 and rtc 0?

    I hope you have some indulgence with me when i ask to much questions. It like i tell before i am a newbie. Its pretty much to lern but i hope i will understand it.

    Best regards, Nils :)

Reply
  • I think this Topic here is pretty interesting for ather perople and newbies how starts programming the chip. To understand what ervy part of the chip does and how it can be programmed is essential for the users.

    I think i understand how to programm th rtc the HFCLK Timer is to programm similar? How to use this compare [] things in the pwm example?

    But i didn't understand how to use schedluing and what it is good for, its a little bit to abstract for me. When i have to use it and when not and what is the main task of the scheduler?

    When i have tu use the PPI and the GPIOTE ? Are they good for relieve the cpu? Or have i to use it also when i just to make a calculation with the cpu and then make an reaction at the output?

    Which timers ar use by the softdevice? Timer 0 and rtc 0?

    I hope you have some indulgence with me when i ask to much questions. It like i tell before i am a newbie. Its pretty much to lern but i hope i will understand it.

    Best regards, Nils :)

Children
Related