Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

How do you change the clk speed?

2006-11-21 by Richard Cooke

Hi Folks,

I'm working on the ATtiny13 with the AVR Dragon and the latest version
of AVR Studio (4.12 SP4).  I guess I don't understand how to change
the clock frequency correctly.  I read the manual and I thought that
if I used:

CLKPR=0x80;  // enable the Clock Prescaler Change Enable bit
CLKPR=0x02;  // system clock divide by 4

Isn't this the proper way to change the clock?  I'm measuring the
current and I see no change.  I'm running the chip at 5V and according
the the spec sheet I should measure a little over 1ma at 1.2MHz.

Any ideas?

Thanks,

Richard Cooke

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.