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
  • Hi,

    thank you for your answers, you helped me pretty much with understanding how to use the timers. Philip do you have any sample Code, i think i will use one timer like you did it.

    I think my biggest problem is understanding how the chips work. I read what gpiote, ppi, tasks and events mean. But i didn't understand how to use them or how they work together.

    And when i want to programm something like a button i use gpiote but why?

    I think this is preety important for programming the chip, knowing how this works. Maybe you can help me or know some good stuff that i can read.

    best regards Nils :)

Reply
  • Hi,

    thank you for your answers, you helped me pretty much with understanding how to use the timers. Philip do you have any sample Code, i think i will use one timer like you did it.

    I think my biggest problem is understanding how the chips work. I read what gpiote, ppi, tasks and events mean. But i didn't understand how to use them or how they work together.

    And when i want to programm something like a button i use gpiote but why?

    I think this is preety important for programming the chip, knowing how this works. Maybe you can help me or know some good stuff that i can read.

    best regards Nils :)

Children
No Data
Related