Chodzi mi o dowolny timer. Rozumiem zachowanie wyjścia OCnx (np.: OC0A dla Timer0) w trybie odwracającym i nieodwracającym (Set i Clear on Compare Match), zresztą w dokumentacji są stosowne rysunki. Nie potrafię sobie jednak wyobrazić, co się dzieje w trybie Toggle on Compare Match. Dla CTC sprawa jest jasna, ale Fast PWM - nie rozumiem.
Dokumentacja podaje:
Cytuj:
The PWM waveform is generated by setting (or clearing) the OC2x Register at the compare match between OCR2x and TCNT2, and clearing (or setting) the OC2x Register at the timer clock cycle the counter is cleared (changes from TOP to BOTTOM).
A co z trzecią opcją?
