Could anyone help?... I am having trouble switching from the 8mhz internal clock to an external 16mhz crystal on a AVR mega32. I was able to switch from the 1Mhz internal clock to the 8Mhz internal. But I can't get the external crystal to function? What is the procedure? I have already messed up four M32's and still can't get one to work at 16Mhz. I am using 22pf caps on the crystal. Do you have any other ideas? What are the fuse settings you use for 16Mhz? I am using the bascom AVR application to set the fuses. I have tried everything that seems right to me. Help............. Thanks, Steve M.
AVR external crystal setup?
Started by ●March 9, 2004
Reply by ●March 9, 20042004-03-09
Steve & Alayne Maeciante wrote:> Could anyone help?... > > I am having trouble switching from the 8mhz internal clock to an > external 16mhz crystal on a AVR mega32. I was able to switch from the > 1Mhz internal clock to the 8Mhz internal. But I can't get the external > crystal to function? What is the procedure? > > I have already messed up four M32's and still can't get one to work at > 16Mhz. I am using 22pf caps on the crystal. Do you have any other ideas? > What are the fuse settings you use for 16Mhz? I am using the bascom AVR > application to set the fuses. I have tried everything that seems right to > me.Yes. The fuses are set for internal Osc. You have to set it to crystal. Just in case you have set it to external Osc, you have to apply one there. And don't disable the JTAG/SPI whichever one you're using. Rene -- Ing.Buero R.Tschaggelar - http://www.ibrtses.com & commercial newsgroups - http://www.talkto.net