Perip.s: Capture/Compare/PWM
10bit PWM width
8bit PWM period (frequency)
Frequency/Duty cycle resolution tradeoff
- 19.5KHz has 10bit resolution
- 40KHz has 8bit resolution
- 1MHz has 1bit resolution (makes a 1MHz clock!)
Can use PWM to do DAC - See AN655
Capture counts external pin changes
Compare will interrupt on when the Timer equals the compare register
Previous slide | Next slide | Back to first slide | View graphic version |