I have written a C code for toggling PB2 and OC0A for every 200 micro seconds. But the code didn't worked as expected.
I did appropriate registery setting. The didn't see any activity on OC0A and PB2. Please assist me.
#define F_CPU 8000000UL
DDRB |= (1<<DDRB3)|(1<<DDRB2); // set pin 3 as output
OCR0A = 0x19; // count value for 200us
TCCR0A |= (1<<WGM01)|(1<<COM0A0); //CTC mode,Toggle OC0A on Compare Match
TCCR0B |= (1<CS00)|(1<CS01); //64 prescaler
TIMSK0 |=(1<<OCIE0A); //Interrupt Enable for Timer/Counter0 Output Compare Match A
PORTB ^= (1<<PORTB2); //Toggles PB2