Fig. 3: Bit Value of WGM0 to select waveform generation mode in AVR
Fig. 5: Bit Value of COM0 to select functionality of OC0 pin in AVR
The following picture shows the output wave form which is received on CRO. The measured frequency of wave is 5 KHz.
Fig. 6: Output Square waveform on CRO using AVR Timer