Retrigger event input action fro SAMD21 TC or TCC

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Perhaps a dumb question, but the SAMD21 datasheet isn't clear (to me)

What does the event action RETRIGGER do when an event is received and the counter is running. Does it only clear the counter and stop the counter, or does it clear the counter, which continues running?

Thanks for any answers

Jerry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When the command is detected during counting operation, the counter will be reloaded or cleared, depending on the counting direction (CTRLBSET.DIR or CTRLBCLR.DIR). When the re-trigger command is detected while the counter is stopped, the counter will resume counting from the current value in the COUNT register.

I never used it but I don't think anything hints that it would be stopped (after the reload or clear) if it's running (would be pretty useless) .

/Lars