Shop OBEX P1 Docs P2 Docs Learn Events
Smoked Crystal or PLL — Parallax Forums

Smoked Crystal or PLL

Paul GPaul G Posts: 10
edited 2011-04-01 15:16 in Propeller 1
I recently built a couple of stripboard based boards using the DIP prop. Everything was working until at the last minute decided to add a couple of smoothing caps to the power. I added a 100 MicroF cap on to the incoming power (before the regulators) and a 47 MicroF Tantalum cap between pins 9 & 12. I didn't have space to put the tant on the other side and 47microF was what I had to hand at the time. I had wired in VSS and VDD to both sides of the chip.

After powering on, the program didn't run. I changed _CLKMODE to RCFAST and it works, but trying to use the external crystal results in hanging, even without specifying the '+ PLLnnX' part.

I have removed both caps and replaced the crystal on one of the boards but it still hangs, so I assume that I have damaged the chip. I don't have a spare prop replacement for testing the moment.

I have searched the forum and found that the PLL circuitry is sensitive to incorrect polarities and spikes, but as far as I can tell, the tant was wired the correct way around.

My question is - what caused the problem and what can I do to make sure I don't smoke the next chip ?

Background - I am a software developer and learning the hardware side, so please go easy on a newbie.

Thanks

Paul

Comments

  • RaymanRayman Posts: 13,850
    edited 2011-03-29 05:58
    Well, the PLL is often the first thing to fry. But, it doesn't sound like you did anything likely to fry it... I've never heard of anyone damaging a crystal, but I'm sure it's possible...

    I would double check your crystal connections... A bad connection at the crystal could be the problem...
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-30 13:49
    Rayman - I agree.

    The Quartz crystals are generally more reliable, but it still can break under specific shock (such as slamming the board on table quickly and hard - it would always fracture a larger Quartz crystal - though the SMD crystals would ususally survive unscathed). Also, it's all too easy to pull the pins out and rip the wire off the crystal with specific brands (usually with the cheap crystals found in the cheaply-made RC toys).

    Also, double-checking the crystal connection is best. AND, don't forget that the decoupling capacitors have to be of the right ranges as the PLL in the Propeller usually "resonate" rapidly - up to 300MHz as mentioned in few overclocking threads here - wrong capacitor choice, and the PLL's history. Low ESR capacitors are also extremely important - lossy higher-ESR capacitors would run out of juice quickly, causing the PLL clock glitches - another reason why they get cooked too easily. My opinions (to be taken with grains of salts), was that the PLLs were made with somewhat thin "wire" traces on the Propeller die, or could be the power input that's too "thin" for its current consumption ratings.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-03-30 14:31
    Not only do you have to wire Vss and Vdd to all of the points designated for them, but you need to have bypass capacitors (like 100nF) for Vdd/Vss on both sides of the DIP package close to the pins. The loading capacitors are internal to the chip, so you just have to have the crystal, also close to the chip with short leads.

    The PLL just happens to be (by testing) the weakest link on the chip. It doesn't take much noise on the power supply or ground to go from 3.3V to over 4V where damage will occur. The additional Vdd/Vss pins are provided for a reason ... to distribute the supply (and ground) currents across the chip so the voltage drops across the chip can be minimized at high currents. If they're not supplied or not properly bypassed, induced noise may have a few more tenths of a volt to ride on and the margins are tight.
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-30 16:59
    Yikes... Unfortunately, it's true of the other microcontrollers too... (Not all PowerPC / Coldfire microcontrollers from Freescale have tough PLLs... Just like you said, a slight hiccups in the power supply rail could still fry it as with the Propeller...)

    Hence the reason why the SMPS have to be checked first and installed with the bulk capacitors (Supercapacitor is a big help, only if the power supply could handle the short-circuit of 2A for short time - 2 Farads), however, it also depends on the power supply designed and how well the board is grounded. I have used Propeller on a 3.3 volts line of a PC SMPS, and it worked fine - the actual mileages will vary.

    Also, unrelated to power supply, I have wrote in my PDF about my own supercomputer, that the cleanness of clock signal is also EXTREMELY important, that is, if the clock beats is overlapped over few cycles, the PLLs will try to relock on what's essentially a dead clock pin (relative to the timing - couple hundred microseconds), the PLL, in some case, will short-circuit.

    There are also few other faults toward the wimpy PLLs, which is also covered by few other threads, including what Sapheia mentioned.

    All in fairness, it sure looked like it was already too late to incorporate the protection circuitry in the on-die PLLs...
    Hopefully the Propeller II's PLLs will be able to handle all of the nasty faults better than its predecessor.

    BTW, finally, few crystal oscillators are of somewhat low-failure parts, so I am not too worried (just don't pull the OE down for a specific times or bad things could happen....) I am using SiTime SiT8003 MEMS oscillator, though.

    And... The wires. They're sometimes notorious for introducing few more millivolts into the chip which can be seen as a dip or spike in high-speed computerized oscilloscope... Did you put in the ceramic capacitor after the wires (disk or SMD wouldn't matter) on the Vss / Vdd? You will want to be SURE you don't introduce the microcontroller-killing pulses which can be induced by the wires... (PCB traces, no big deal. Dangling wires, big deal...)
  • PublisonPublison Posts: 12,366
    edited 2011-03-30 17:26
    I would not call it a fault. It's just a weak link if all design rules are not followed. Caps at all VSS and VDD points. (That's 4 points on the QFN and QFP).

    What's amazing is that Parallax does not follow the rules, (number of capacitors and close proximity to the chip) and yet hundreds of Proto Boards, PEK Kits and PPDB don't seem to have a problem. Maybe no so much of a weal link.

    [QUOTE=Hopefully the Propeller II's PLLs will be able to handle all of the nasty faults better than its predecessor. [/QUOTE]
  • Mike GreenMike Green Posts: 23,101
    edited 2011-03-30 17:33
    It's not really a weakness of the PLL area. It's just that something has to go first when the chip is stressed beyond its design parameters and the PLL is it. If the PLL were redesigned, something else would go first. The Prop II operates at 1.8V internally, so even smaller spikes on the 1.8V supply will smoke it. The solution is to layout the board properly and bypass whatever needs to be bypassed. I'm sure Parallax will offer advice on best practices.
  • AleAle Posts: 2,363
    edited 2011-03-31 04:53
    You can always use an external 80 MHz oscillator to clock the propeller bypassing the PLL... it should work :). There is still hope for your Propeller !!
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 10:09
    Mike... Good point. That's the same reason why the PC motherboard has so many bypass capacitors and the beefed-up switching voltage regulators. CPU do have some problem with the PLLs but not as catastrophically as the Propeller I's fabulous clock generators. At 1.8V, that's much more tricker...

    Also, about bypassing the fried PLL, I don't think it's easy. Some PLL that's dying would often take the bypass trace with it, thus disconnecting the clock pins along with it, leaving the Propeller totally vegetable. Either you're lucky or you're not. But, you still can test to see if that "special" trace isn't touched (and "zorched") by the failing PLLs.

    And... Fewer and very high-end microcontroller (PowerQUICC - I know it's a general purpose CPU intended for networking and embedded computing, but it can be used as microcontroller, anyways...) have so tight a voltage skew requirement with CPU die voltage of 0.95 V to 1.15V. Way too easy to get fried by the flaky power supply... (Although very well-designed power supply shouldn't be a problem, and it would be possible to run the MPC8377 on AA batteries for a while and MUCH longer on Lithium-ion battery, just the designing rules has to be followed...)
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-03-31 11:40
    I'm sorry, but every time I encounter the title of this thread, I have to do a double-take: "Why is someone posting in the Parallax forum about their drug habit? And I've heard of PCP, but what's PLL?" :)

    -Phil
  • RaymanRayman Posts: 13,850
    edited 2011-03-31 12:01
    Smoke Props, not drugs!
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 12:06
    Very funny, good one. ^____^

    However, PLL (Phase Loop-Locked) was the things that some peoples have been complaining about...
    No wonder some of the clock chips are the highest failure parts... (The expectation, of course, would be the oscillator blisters [or pack, take your pick] as they already have the capacitor built-in. Yes, I have ripped one open out of curiousity. Two SMD high-Q capacitors are present as well... Not SMD ones, unfortunately. Regular Quartz and MEMS oscillators are typically fault-free as long as the right capacitors are supplied at the Vdd and Vss, usually an 0.1uF low-ESR SMD capacitor VERY close to the SMD oscillator or via the vias to the bottom.)
  • SapiehaSapieha Posts: 2,964
    edited 2011-03-31 13:56
    Hi.

    ALL - PLL's are Voltage sensitive as them use VCO - Voltage Controlled Oscillator.



    Dr. Mario wrote: »
    Very funny, good one. ^____^

    However, PLL (Phase Loop-Locked) was the things that some peoples have been complaining about...
    No wonder some of the clock chips are the highest failure parts... (The expectation, of course, would be the oscillator blisters [or pack, take your pick] as they already have the capacitor built-in. Yes, I have ripped one open out of curiousity. Two SMD high-Q capacitors are present as well... Not SMD ones, unfortunately. Regular Quartz and MEMS oscillators are typically fault-free as long as the right capacitors are supplied at the Vdd and Vss, usually an 0.1uF low-ESR SMD capacitor VERY close to the SMD oscillator or via the vias to the bottom.)
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 14:35
    Yea. Agreed.

    In couple of the CPUs / MCUs datasheet, the PLL must be in the threshold of 0.1% voltage skew limitations, or you are going to be in trouble. Fried PLLs and/or messed up CPU core (ALU) frequency is the byproduct of what's going to happen if the rules are to be ignored. Not what you want seeing in your own hardware.

    Very few oscillators wouldn't care as it got the on-die voltage regulator and DC charge pump. You gotta check the datasheet - they're tolerable within 10% voltage skew limitation, but not the CPU.

    Oh yea, do not forget about the die temperature as it do and actually will affect the PLLs.
  • SapiehaSapieha Posts: 2,964
    edited 2011-03-31 14:41
    Hi.

    It is WHY all CPU's/FPGA's that have inbuilt PLL system NEED Very good decoupling.

    And as Propeller use PLL's to --- NEED same rules as that others.

    Dr. Mario wrote: »
    Yea. Agreed.

    In couple of the CPUs / MCUs datasheet, the PLL must be in the threshold of 0.1% voltage skew limitations, or you are going to be in trouble. Fried PLLs and/or messed up CPU core (ALU) frequency is the byproduct of what's going to happen if the rules are to be ignored. Not what you want seeing in your own hardware.

    Very few oscillators wouldn't care as it got the on-die voltage regulator and DC charge pump. You gotta check the datasheet - they're tolerable within 10% voltage skew limitation, but not the CPU.

    Oh yea, do not forget about the die temperature as it do and actually will affect the PLLs.
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 14:56
    Yea.

    And Sapheia, few question I have been meaning to ask you... Is the capacitive value more important when choosing the decoupling capacitors than would be at the power supply rail? The reason I asked was because I am used to be putting in 0.1uF Low-ESR decoupling capacitors as usually recommended in the datasheet, while some people said 100nF is better (for some reason I disagree as its charges can be totally gone in a flash - up to 4 Amps in several nanosecond timing frames - the reason why I picked 0.1uF ones).

    And, regarding high-quality Low-ESR capacitors (I usually use Japanese-made capacitor as I like to keep the chance of failure low), if trace width and length (on the power supply rail) should be carefully calculated to the nth degrees, if so - why?
  • LeonLeon Posts: 7,620
    edited 2011-03-31 14:58
    0.1 uF is 100nF!

    Just use wide tracks for Vdd and Vss.
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 15:12
    Yeah, although sometimes asking a veteran whose is much more knowledgeable about the Propeller's core PLL as he/she may have blown up few to find the causes and how to rationale the best formula in preventing some funny quirks, as some of us would say it's more of SWAG (Scientific Wild-A**ed Guessing) - may be the correct course of action... I was a bit curious about the bits of decoupling capacitor rules.

    Yet, at 300mA, traces wouldn't have to be prohibitively thick, but it can and actually helps (it do reduce the chance of radiating nasty radio frequency around).

    Leon and Sapheia... Good advices.

    (P.S. Leon, you're right about the capacitive values... I was kinda asleep in my head - realized some part of my thread, now I felt like an idiot...)

    So, Paul G, in the end, you may want to use very fast oscilloscope to see the spikes with a dummy device like NE555 timer IC on a simulator DIP-40 board to simulate the Propeller's load as you want it to be as close as the real thing so you could catch the nasty spikes and put in where it really need the decoupling capacitors. We do make mistakes, but sometimes it do help to make the same mistake, however in different ways, to find the solutions quickly.
  • SapiehaSapieha Posts: 2,964
    edited 2011-03-31 15:21
    Hi.

    As Leon pointed -- It is same value --- Only written diferently.

    BUT that decoupling's capacitors NEED have very fast response time - As them are in place to SHORT all very fast transients.

    To that You always have at last ONE 10-33uF(Varies on IC's current variations needs) Tantalum else other type of Capacitor That can HOLD and Smooth Voltage to IC
    on all IC's that have Variable Voltage/Current consumption.






    Leon wrote: »
    0.1 uF is 100nF!

    Just use wide tracks for Vdd and Vss.
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 15:29
    Yeah, I was kinda slow today, didn't recognize that it was actually the same value...

    And what I knew and have been doing, the capacitors should be 0.1uF (some 1uF) and of very low ESR CLOSE to the processors (Propeller in this case), while you can place up to 2 inches apart a larger low-ESR capacitor at the power supply rail (my typical choice is Nichicon Low-ESR Aluminum Oxide Polymer capacitors). I have been using higher value at the entry point of power supply to help eliminate nasty ripples as well as the 60 hertzs DC pulses from shoddy wall adapter (it will still pulsate from the voltage regulator, not a good thing, nor pretty).

    The only reason I use kinda larger value unless strictly listed in the datasheet, was because I have to assume the worst-case scenarios like using the Propeller board with lousy wallwart (the one that's heavy - with transformer in it) as 60Hz can often ruin your / our pleasure playing with Propeller, only to watch it getting turned on and off at 120Hz - which is why I use 1,200uF on mine.
  • SapiehaSapieha Posts: 2,964
    edited 2011-03-31 15:45
    Hi.

    I maybe not understand correctly. BUT Decoupling and BULK capacitors are not same You shall never optimize that by using only one capacitor.
    If You use decoupling capacitor and BULK it need always be 2 capacitors in parallel. As them have different function.
    To decoupling capacitors most used are Ceramic ones.
    1uF are to small to be BULK and in most cases to BIG to be decoupling one.

    Many times for correct function on Propeller in over-clocking as decoupling ones I use even 2 capacitors in Parallel - One 100nF and one 10nF. That are decided on Frequencies them need SHORT.

    Dr. Mario wrote: »
    Yeah, I was kinda slow today, didn't recognize that it was actually the same value...

    And what I knew and have been doing, the capacitors should be 0.1uF (some 1uF) and of very low ESR CLOSE to the processors (Propeller in this case), while you can place up to 2 inches apart a larger low-ESR capacitor at the power supply rail (my typical choice is Nichicon Low-ESR Aluminum Oxide Polymer capacitors). I have been using higher value at the entry point of power supply to help eliminate nasty ripples as well as the 60 hertzs DC pulses from shoddy wall adapter (it will still pulsate from the voltage regulator, not a good thing, nor pretty).
  • jazzedjazzed Posts: 11,803
    edited 2011-03-31 15:47
    Leon wrote: »
    0.1 uF is 100nF!.
    I'm in a music class for fun. Some guy there swears that music played in Dbb (D double flat) sounds much better than music played in C. Perhaps that's because of artistic impact of the player having to translate the notes down a step. Karaoke machines are capable of double flatting anything.
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 15:53
    Sapheia, you would be correct.

    However, 1,200uF AlO3 Nichicon capacitor is to be used as a bulk capacitor AFTER the regulator(s) for the rest of circuitry while 0.1 to 1uF Ceramic low-ESR capacitors is to be used for decoupling the entry point of Vss / Vdd for the semiconductor ICs like Propeller, oscillator and finally a firmware ROM (EEPROM or Ferroelectric RAM), to isolate it from all of the nasty noise that could occur there. Also, trace length is apparently VERY important.
  • SapiehaSapieha Posts: 2,964
    edited 2011-03-31 16:01
    Hi.

    BULK Capacitor near REG are not same as BULK capacitor near Propeller. As You write Traces have some resistance and even if You have BIG Bulk near REG -- It will not prevent Voltage drops near Propeller.

    And as I write in post before 1uF with 80MHz working Propeller are to small to be BULK and to BIG to be Decoupling one.
    Usable values for Propeller are 10-100nF ceramic capacitors.


    Dr. Mario wrote: »
    Sapheia, you would be correct.

    However, 1,200uF AlO3 Nichicon capacitor is to be used as a bulk capacitor AFTER the regulator(s) for the rest of circuitry while 0.1 to 1uF Ceramic low-ESR capacitors is to be used for decoupling the entry point of Vss / Vdd for the semiconductor ICs like Propeller, oscillator and finally a firmware ROM (EEPROM or Ferroelectric RAM), to isolate it from all of the nasty noise that could occur there. Also, trace length is apparently VERY important.
  • Dr. MarioDr. Mario Posts: 331
    edited 2011-03-31 16:07
    And, for signal, the trace length will also introduce the delays (the times it requires for the electrons to travel from Point A to Point B through specific length of a trace) which is why the Rambus XDR-DRAM memory chips has to "train" themselves along with a CPU's XDR controllers to take delays between multiple traces into account so that way the CPU can send the data onto the RAM's on-die banks to be stored there without corrupting the data packets being "readed" by the on-die RAM controller, on the XDR-DRAM die (FlexPhase, an on-die time delay clock used to correct the skew delay among all of the traces).

    Delay between traces on SDRAM IO won't matter much, but on faster RAMs, like XDR and DDR1 - 4, it's much more important, as it becomes unacceptable at higher frequency, another reason for the trace matching.
  • Paul GPaul G Posts: 10
    edited 2011-04-01 13:13
    OK, after getting replacement chips and crystals, I found that the problem was not either of those. I had left the strips after the crystal intact. I cut them and now everything is working.

    I don't understand why it was working earlier, but I guess it was just on the edge of tolerance.

    I told you I was a newbie.

    Thanks for all the suggestions.

    Paul
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-04-01 15:16
    If you were using a stripboard without cutting those strips, they will have contributed (apparently too much) to capacitve loading.

    -Phil
Sign In or Register to comment.