This link is tutorial how to program Atmega16 using Arduino: http://hardwarefun.com/tutorials/use-arduino-code-in-non-arduino-avr-microcontroller
this is my instructable: http://www.instructables.com/id/Programming-ATmega16A-using-arduino-IDE/
آی-ویدئو