I having problems with choosing the correct fuse settings for a 1284P-au. I have tried using an avrisp MK11 with atmel studio 7, ardiuno as isp, and Nick Gammon's Atmega_Board_Programmer. So far it appears, I have bricked 4 uc's. Anybody know of a way to recover a chip after the fuse settings make it unrecognizable?
Here's settings i have tried which were taken from boards.txt:
Try full swing crystal oscillator clock setttings:
Full Swing Crystal Oscillator 0111 - 0110
I use f7 in Low Fuse byte for that.
1284.menu.clock.16MHz_external.bootloader.low_fuses=0xf7
Assuming it's bricked because you've told them to use an external oscillator that is not present or functioning, or an external crystal that isn't present or functioning (as Crossroads noted, the 1284p doesn't seem to work reliably if crystal isn't set to full swing)...
Unbrick the microcontrollers by supplying an 8 or 16mhz square wave to XTAL1 pin and write the correct fuses. There's a version of arduinoasisp that outputs an 8mhz clock for this purpose.
I have attached pictures of the board with a 16Mhz Crystal; decoupling caps are on the bottom side. So you're suggesting that crystal isn't functioning properly. ill swap it out and see if that makes a difference. otherwise Ill have to wait until more IC's arrive
It may not be functioning properly because you have the fuse set for low power crystal instead of full swing crystal, as crossroads noted above. From other posts I've seen, it sounds like lots of people have problems using fuses set for low power crystal, and that changing fuses to full swing crystal fixed it.
What is the deal with that 4-leg crystal? Is that called an active crystal? I know about the 2-leg variety and the resonators with 3 legs and built-in caps, but don't know about when or where those 4-leg ones are used.
In Other words, Oscillators are stand alone Clock Generating circuits while Quartz Crystal or Ceramic Resonators are just one part of the whole Oscillator Design. Quartz Crystal or Ceramic Resonator makes an Clock Oscillator when a feedback mechanism is incorporated with them. Like as shown in the Figure above where the feedback circuitry is actually exists inside the MCU itself. This kind of feedback circuit is necessary to achieve sustained oscillations.
A Clock Oscillator (One with 4 leg metal casing) has a Quartz Crystal as oscillating element and Feedback mechanism and Capacitors for sustained oscillations inside it, which makes it a stand alone clock generator.
Thanks. Looking at that article about the clock oscillator it appears you don't need to connect both XTAL1 and XTAL2, but in the photo seanz2003 attached it appears they are both connected anyway. I wonder about that.
most of those 4 pin smd parts are simple quartz crystal, not oscillators. i use thousands in my day job and the extra 2 pins are either case or completely nc. its quite easy to tell which are which with a simple continuity check.