How to configure ATmega16 to run with external crystal oscillator

Thread Starter

sinoj

Joined Jun 4, 2007
4
Hi,

I am an AVR beginner with ATmega16 as the Device. How can an ATmega16 be configured to run with an external crystal oscillator of frequency 7.3728 MHz. Which are the Special Function Registers for this purpose and how they have to be configured? What is the default settings? I am using CodeVisionAVR(2k evaluation) and also IAR Embedded Workbech Kickstart. Kindly help me with example C codes.
 

hgmjr

Joined Jan 28, 2005
9,027
The clock source is selected by setting the appropriate built-in fuse. There is no c-language statements that provide access to these fuses. They are set using the downloading tool.

What hardware tool do you use for downloading the compiled code into the ATMEGA16?

hgmjr
 
Top