AC_COMPCTRL_INTSEL_FALLING on SAMD21

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

The comparator output generates an event tied to a TC timer capture. Everything seems good if AC_COMPCTRL_INTSEL_RISING. I see both TC->COUNT16.INTFLAG.reg and AC->INTFLAG.reg getting set at the same time when the AC output changes to 1. If I change to AC_COMPCTRL_INTSEL_FALLING, AC->INTFLAG.reg still works as expected. I.e., getting set when the AC output changes to 0. But TC->COUNT16.INTFLAG.reg flag still works as it was AC_COMPCTRL_INTSEL_RISING. Thoughts?

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

Never mind. This had to do with the path. Everything looks good if I change EVSYS_CHANNEL_PATH_ASYNCHRONOUS to EVSYS_CHANNEL_PATH_ASYNCHRONOUS.