Input Capture Unit and Fast PWM mode

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

Do Input Capture Unit work in Fast PWM mode when OCRxA is used for TOP counter value (WGMn3:0 is 1)?

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

Input capture always works, but whether the capture values are readily usable depends. They won't if the counter counts up and down like in normal PWM modes, but with fast PWM it should work, but calculating the interval time is slightly more complicated if the timer does not use the full 8 or 16 bits.

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

Quote:
Input capture always works

Hmm... In Fast PWM mode when ICRn used for TOP counter value Input Capture Unit is not work.

In simulator ICU does not work in Fast PWM mode. What is in hardware?