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.
Re: How to configure ATmega16 to run with external crystal o
external clock can be set by setting CKSEL3...0 bits.these bits ve to b manually set using programmer and is done in different ways using the programming software u use.but be carefull not to mess with others bits if u dnt know there functions.read data sheet before setting bits