TCCR2A = ((1 << WGM21) | (0 << WGM20)); TCCR2B = (( 1 << CS22 ) | ( 1 << CS21 ) | ( 1 << CS20 )); // 1/2^10 ASSR &= ~(1<<AS2); TIMSK2 = (1 << OCIE2A); // Enable TIMER2 compare Interrupt TCNT2 = 0; OCR2A = TICK_DIVIDER; // must be loaded last for Atmega168 and friends
where do I go to understand what WGM21 or ASSR mean and how they are used?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16