Machine-translated by Google. Questions are authored in English.
Top

Discussion

Pulse width modulation from a timer is produced by comparing the counter against

  • A.the watchdog counter, which sets the period
  • B.a compare register, the output changing state at the match
  • C.an external reference voltage
  • D.the previous captured value of the counter

Answer: B

The counter defines the period and the compare value defines the duty, so writing a new compare value changes the duty without disturbing the frequency. It is how a motor drive, a dimmer and a switching supply are all controlled from a microcontroller.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.