I have a usb asp programmer. I want to upload arduino sketch into the Atmega8A-PU chip.
Initially i tried with the ATmega328 P chip , it worked . But in case of ATmega8A-PU it is not working properly. I uploaded the example blink sketch to Atmega8A-PU but the blinking occurs very slowly
please help me. Is there any way to program a Atmega8A-PU properly using usb asp programmer????
saddam2k9:
I uploaded the example blink sketch to Atmega8A-PU but the blinking occurs very slowly
At least the ATmega328P is shipped with the programming fuses set to:
Internal 8 MHz oscillator
Initial clock pre-scale: divide by 8
That give an effective clock rate of 1 MHz. If you are using programs that expect 16 MHz they will run at 1/16th speed.
The normal Arduino way to set the fuses id "Burn Bootloader". You will need an entry in boards.txt that will work for an 8 MHz Internal Oscillator ATmega8A. If you are going to use the USBasp for uploading it doesn't really matter what 'bootloader' you upload as long as the fuses are correct.