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 Reply
  • Well there's a contradiction then between you and Nguyen's reply...

    What he says is:

    "you reset it by writing a 0 to the EVENTS_?? registers.  EVENTS_COMPARE[I] = 0 for triggered events. "

    You, however, say that the timer tasks TASK_START, TASK_CLEAR, TASK_STOP are "being automatically reset after one clock cycle" (essentially a single clock cycle one shot).

    so.. which one is it?

Children
Related