In this tutorial, I will share how to program AVR ATmega16/16A using Arduino IDE. First, download the definition file from here. Next, Copy custom folder from extracted file to hardware folder in Arduino IDE.
Run
the Arduino IDE, then from menu Tools select Board → ATmega16/16A
(16MHz, External).