You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might be wondering why we're only lighting up three LEDs using the hardware PWM, [...] AVR's dedicated PWM pins are limited to [...] four pins at an 8-bit PWM depth, and two at 16 bits.
That makes the mentioned six PWM channels, ok so far.
The pwmTimers.c examples then continues to use OC2A, OC1B and OC1A output compare pins.
What is the book actually implying here? Can't I use 3 more pins for PWM? AFAIK OCR2B and those of Timer/Counter 0 OC0A and OC0B?
Or is it merely saying that in our current setup, where those 8 LEDs are currently wired to the B bank this would not be possible without rewiring some of those LEDs to the D bank?
The text was updated successfully, but these errors were encountered:
3 timers x 2 pins = 6 PWM pin options. The software example uses 2 timers for 3 leds.
Later in the chapter, there is a 'hack' described to use PWM on any pin.
Chapter 10, page 206 states
That makes the mentioned six PWM channels, ok so far.
The
pwmTimers.c
examples then continues to useOC2A
,OC1B
andOC1A
output compare pins.What is the book actually implying here? Can't I use 3 more pins for PWM? AFAIK
OCR2B
and those of Timer/Counter 0OC0A
andOC0B
?Or is it merely saying that in our current setup, where those 8 LEDs are currently wired to the B bank this would not be possible without rewiring some of those LEDs to the D bank?
The text was updated successfully, but these errors were encountered: