> From: Tim Mitchell > .... > Hang on a minute, how are you programming this board? If you're using > ISP and the clock really isn't running, you would not be able to > program > it back to internal osc once you'd set it to external - the ISP would > stop working. I'm programming it from AVR Studio via JTAG (Ice-Cube adapter) so I'm ok there ... > From: Tim Mitchell > .... > > Strange - the AVR crystal circuit is fairly resilient in my experience. > Your fuse settings look fine. > The only problem I have had is incorrect setting of CKOPT - if CKOPT is > not programmed then the crystal startup becomes uncertain, sometimes it > works and sometimes not. > > Have you tried programming your second board with the same fuse > settings > to see if that one works? Could be a problem with the Mega16 or the > board? > .... I hadn't tried the other board but I have now ... I programmed the same firmware and fuses into the processor on board 2 and it worked, hmmmm ... I swapped the processors and tried the processor from board 1 in board 2 ... it worked ... hmmmm ... I tried the processor from board 2 in board 1 ... it worked ... Now things got really crazy ... I put the original processor for board 1 back into board 1 to get back to where I started ... now it worked! So ... my guess is that, even though the chip was well seated when I went to remove it, there must have been some corrosion, dust, gremlins, whatever on one or more pins because re-seating it apparently fixed the problem. Thanks for suggesting to try the other board as it led me to the problem. Cheers, Chuck Hackett "Good judgment comes from experience, experience comes from bad judgment" 7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck
Message
RE: [AVR-Chat] Setting ATMega16 clock options
2009-09-03 by Chuck Hackett
Attachments
- No local attachments were found for this message.