Go Down

Topic: Atmega8 slow clock speed and fuse settings (Read 1 time) previous topic - next topic

adilmalik

i got an atmega8l(8mhz internal) and i programmed it using a parallel programmer and ponyprog, i used arduino ide to generate the .hex file with these settings in "boards.txt"
Code: [Select]

##############################################################

atmega8.name=Arduino NG8 mhz

atmega8.upload.protocol=stk500
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200

atmega8.bootloader.low_fuses=0xe4
atmega8.bootloader.high_fuses=0xd1
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT.hex
atmega8.bootloader.unlock_bits=0x3F
atmega8.bootloader.lock_bits=0x0F

atmega8.build.mcu=atmega8
atmega8.build.f_cpu=8000000L
atmega8.build.core=arduino



i first compile sketch, locate the hex file and upload using ponyprog, the problem is that the sketch is running very slow, i used the blink sketch and instead of 1 second delay ,there is a 8 second delay ,how can i fix this??

note:im not using any bootloader at all

madworm

http://www.engbedded.com/fusecalc

Did you change the clock select fuses?

These chips per default run at 1MHz internal RC oscillator.
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

floresta

Have you read the fuse information to make sure they got programmed as desired, particularly the 'low_fuses'?

Don

adilmalik

yes i did change the fuses, but i accidentally burned sketches with, with the cpu speed as"16000000L" so this gave me a delay of 16 sec in the blink skectch, after that i corrected it but it still gave me a 8 sec delay in the blink sketch.can i burn fuses with ponyprog?

Go Up