A silly question about timer register triggers

I'm sorry. This must be trivial to all of you. I'm a beginner with nrf52 programming, and I saw several examples that refer to timers TASK_START, TASK_CLEAR, TASK_STOP. Everywhere, it just sets them to "1". However the datasheet says that it's a trigger operation (edge triggered as I understand it).

So.. What resets the trigger flag then? Is it automatic? After how many clock cycles? I searched in the datasheet and online tutorials but I'm clearly missing the answer.

Thanks in advance.

Parents
  • Hey again,

    I'm sorry.

    No problem at all!

    So.. What resets the trigger flag then?

    It isn't edge triggered.

    Those are write only registers, they won't be reset back to zero. Every time you write 1 to the register the internal task gets activated. which starts the internal task signal. You don't have to worry about resetting them to 0, or worry about activating them too frequently.

    Regards,

    Elfving

Reply
  • Hey again,

    I'm sorry.

    No problem at all!

    So.. What resets the trigger flag then?

    It isn't edge triggered.

    Those are write only registers, they won't be reset back to zero. Every time you write 1 to the register the internal task gets activated. which starts the internal task signal. You don't have to worry about resetting them to 0, or worry about activating them too frequently.

    Regards,

    Elfving

Children
Related