Comments on: AVR Microcontroller Default Clock https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/ Microcontrollers, training, electronics and coding Mon, 05 Oct 2015 11:05:11 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Kanda Admin https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/#comment-2209 Mon, 05 Oct 2015 11:05:11 +0000 http://www.kanda.com/blog/?p=58#comment-2209 In reply to george.

CKDIV8 does exactly what is says. If you select, for example, a 1MHz Internal clock, then if CKDIV8 is set you will get 1MHz / 8 = 128KHz.
So you could select a 128KHz clock that way.

Most programmers struggle at this frequency but you don’t say which one you are using. I would guess AVRISP-MKII but not sure. Set the ISP clock as low as it will go and try again. It is often better to try reprogramming fuse back to a faster speed before trying other programming operations.

]]>
By: Kanda Admin https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/#comment-2208 Mon, 05 Oct 2015 11:05:02 +0000 http://www.kanda.com/blog/?p=58#comment-2208 In reply to george.

CKDIV8 does exactly what is says. If you select, for example, a 1MHz Internal clock, then if CKDIV8 is set you will get 1MHz / 8 = 128KHz.
So you could select a 128KHz clock ythat way.

Most programmers struggle at this frequency but you don’t say which one you are using. I would guess AVRISP-MKII but not sure. Set the ISP clock as low as it will go and try again. It is often better to try reprogramming fuse back to a faster speed before trying other programming operations.

]]>
By: george https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/#comment-2089 Fri, 11 Sep 2015 13:50:03 +0000 http://www.kanda.com/blog/?p=58#comment-2089 Hello,

I am using ATtiny44a and I want to set 128 kHz low power internal oscillator. I went through the device programming window and set the fuse bits SUT_CKSEL to WDOSC_128KHZ_6CK_14CK_64MS. In other words, I have set the system clock to be at 128kHz, 6 cycles start up time from power-down and 14 cycles + 64 ms additional delay from reset. I have unprogrammed the CKDIV8 as well as id doesn’t make any sense. I set the ISP clock frequency to 32 kHz which is 1/4 of the system frequency but it fails to enter to programming mode. I then use little lower at 25 kHz and is able to read the device signature but still is unable to be programmed returning a message that reads 0xcc instead of 0x00.

Any help will be appreciated
Thank you

]]>
By: Kanda Admin https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/#comment-1054 Tue, 01 Jul 2014 16:05:38 +0000 http://www.kanda.com/blog/?p=58#comment-1054 In reply to Ernoe.

Look on Fuse and Lock bits tab. Change CLKSEL (Clock Selection) fuses from default 1MHz Internal RC to High Speed crystal (value CLKSEL= 1111). Then go to Device menu -> Program ->Program Fuses.

Your AVR microcontroller will now use the 16MHz system clock.

]]>
By: Ernoe https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/#comment-1050 Sat, 07 Jun 2014 07:44:23 +0000 http://www.kanda.com/blog/?p=58#comment-1050 OK. I found it 🙂

THX!

]]>
By: Ernoe https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/avr-microcontroller-default-clock/#comment-1049 Sat, 07 Jun 2014 07:27:57 +0000 http://www.kanda.com/blog/?p=58#comment-1049 Hi,
I download the avrisp from this page. The programmer works ok , but the programmed chip run very slowly. I apply 16Mhz external crystal with target chip , but chip run very slow.
How to setting in programmer software the 16Mhz crystal (the chip is mega328p-pu)

Thank You
Ernoe

]]>