Settings
Go to Project in the Menu bar and click on configuration settings. Set frequency to 8000000 and optimization to --O0. Click OK.
Starting PROGRAM
To program any AVR microcontroller include avr/io.h to your program by writing #include<avr/io.h> This header file includes the appropriate IO definitions for the device.