Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: How do you change the clk speed?

2006-11-22 by Mark Jordan

On 22 Nov 2006 at 13:15, John Samperi wrote:

> I remember once trying to use the prescaler on the Tiny2313 with no results
> and then giving up :) I may have another go myself.
> 

	I use this:

	ldi	tmp, 1<<CLKPCE		; Enable changes
	out	CLKPR, tmp
	ldi	tmp, 1<<CLKPS0		; Xtal/2
	out	CLKPR, tmp

	Works very well on my TINY2313 running with a 14MHz Xtal.

	Mark Jordan

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.