Pages: [1]   Go Down
Author Topic: Atmega8 slow clock speed and fuse settings  (Read 1814 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 184
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
##############################################################

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
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.engbedded.com/fusecalc

Did you change the clock select fuses?

These chips per default run at 1MHz internal RC oscillator.
Logged

• 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!

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 4322
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Don
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 184
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Pages: [1]   Go Up
Jump to: