Shop OBEX P1 Docs P2 Docs Learn Events
How sensitive is the Prop chip PLL crystal input to damage — Parallax Forums

How sensitive is the Prop chip PLL crystal input to damage

jon123456789jon123456789 Posts: 11
edited 2009-11-14 11:17 in Propeller 1
Hi,
just after others experiences with this.
I've been using my prop in a breadboard installation using a 3.3v regulator fed from a 12v bench top psu with no caps etc, using wire links between various other ic's and Inputs / Outputs to generally have a play around and learn spin. All ok so far.
I've then built a more permenant prototype of my circuit on copper strip veroboard (before I went on to get it done properly as an etched solution) basically links some volt free digital inputs to 8 pins and connects to a MAX232 (external caps) and onboard EEPROM and 3.3v and 5v regs with the necessary tant caps to stabilise the supply which I use as a link between digital IO and a SMS modem to send text messages from my alarm system and after a few hours of use (including power cycling the PSU) the program fails to run. A bit of diagnostics later reveals that the prob is no longer·responding to the crystal input or the PLL multiplier. All other pins are ok and it will run the exersise 1 spin code to simply blink an led on any pins and the eeprom works.
Basically the crystal input is stuffed. The crystal is ok (tested on another circuit)
I've bought another prop, and the same happened.
I've checked for shorts / open circuits / voltage levels etc and all I can assume is that somehow it is getting spiked from caps / psu and breaking something internal.

What do others do to protect their props from situations like this? Zeners? Bigger caps? different PSU? spacings around the crystal? Other?
Has anyone else found a reason that the crystal input / PLL multipler part of the prop is most sensitive to damage and especially what would you do to protect it?
My previous breadboard experience of no in circuit protection, no psu caps,·man handling chips in / out gave me the impression the chip was almost indestructable but obviously (and understandably) not!

Cheers

Jon

Comments

  • AleAle Posts: 2,363
    edited 2009-11-11 13:09
    There are a couple of threads about this problem already. It boils down to: connect all VSS/VDD pins and decouple them. Avoid spikes on the GND and VDD power rails (use a pi filter if necessary), for this try to avoid using the same VDD for things like coils.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Visit some of my articles at Propeller Wiki:
    MATH on the propeller propeller.wikispaces.com/MATH
    pPropQL: propeller.wikispaces.com/pPropQL
    pPropQL020: propeller.wikispaces.com/pPropQL020
    OMU for the pPropQL/020 propeller.wikispaces.com/OMU
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-11-11 13:20
    jon, if your rig repeatedly fries chips [noparse]:)[/noparse] then it is very valuable as a "do not do this" circuit, Parallax may even be interested. Can you take some close photos of the board top and bottom and post them?

    You will probably find that you did not link the ground pins of the Prop together directly (as well as the supply). Do not assume that by connecting ground to a ground pin that that is all that is needed, link them all directly. I never run any power components off the same voltage as the Prop, regulators are cheap.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • jon123456789jon123456789 Posts: 11
    edited 2009-11-12 12:23
    Looking at the demo board schematic I could insert a few more caps here and there.
    I'm convinced looking at the schamatic and layout that it has to do with spikes from the PSU when power cycling, it is just strange that the exact same circuit (although a different layout) has worked fine on a breadboard. Its almost like the caps made it worse!
    All ground pins were directly linked under the dip socket.
    I've ordered a load of 0.1uf, 1uf and 10uf tant caps and will insert them as per the demo board. I'll also stick the caps nearer to the prop VDD pins to gnd.
    Still bemused as to why this bit of the prop breaks first!
    Good job I bought a few of these chips to have a 'play' with!
    I am using the same 3.3V reg (via a 5V reg, from a 12V DC supply) as the demo board. What do others use for a robust / safe / clean 3.3V supply?
    Cheers
    Jon
  • AleAle Posts: 2,363
    edited 2009-11-12 13:11
    I have used LM1117-3.3 too, no problems so far. And once a LM1084-3.3. Do you have a photo of your layout ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Visit some of my articles at Propeller Wiki:
    MATH on the propeller propeller.wikispaces.com/MATH
    pPropQL: propeller.wikispaces.com/pPropQL
    pPropQL020: propeller.wikispaces.com/pPropQL020
    OMU for the pPropQL/020 propeller.wikispaces.com/OMU
  • photomankcphotomankc Posts: 943
    edited 2009-11-12 14:30
    So is the lack of some .1 and 1uf caps really going to make the PLL go poof?
  • LeonLeon Posts: 7,620
    edited 2009-11-12 14:56
    photomankc said...
    So is the lack of some .1 and 1uf caps really going to make the PLL go poof?

    It's more likely to be caused by not connecting all the Vdd pins. Inadequate decoupling can cause other problems, of course.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-11-12 14:58
    The answer is not as simple as having or not having caps. Regulators try to compensate for both line and load variations but of course there is a finite amount of time that it takes to sense, react, and settle. That's why LDO regs have tantalum caps on the output because most LDOs are slow to respond when compare to their standard cousins. The trouble is that poor load regulation due to lack of sufficient load capacitance can make the regulator over-compensate then under-compensate etc (ringing) during which you could get some spikes from the regulator itself. If the tantalum is in back to front it could be a problem if it hasn't already gone up in smoke. The ground of the regulator should not be "remote" from the ground of the Prop, run ground from power-in to the reg and then the ground from the reg to the Prop.

    Don't assume anything is in right or is the right component, go back over your proto component by component.

    The other thing to look out for are any +5V inputs. I noticed you are using a +5V rail and a MAX232 so how are the digital outputs from that tied back to the Prop? Through resistors I hope.

    These Prop chips are rugged but stress anything beyond it's ratings and it will break, preferably in a predictable fashion. No use trying to protect the PLL as something else will probably go anyway because the chip is stressed, better off not stressing it and find out what's wrong with your circuit rather than picking at the Prop.

    @Jon, photos are everything, I'm sure we'll take one look at the photo and go "aha!"

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • photomankcphotomankc Posts: 943
    edited 2009-11-12 15:34
    Peter,

    That's what I was getting at. I wouldn't expect you to miss a .1uf decoupling cap and have the chip's PLL burn up. I would think there would need to be more at work than that. I know the regulators can throw fits without proper output caps so that would make some sense. For me, if that board had eaten two fairly expensive and now difficult to replace chips I would be looking to start over and reverify everything.
  • jon123456789jon123456789 Posts: 11
    edited 2009-11-13 15:57
    Interesting points raised.
    I've rebuilt using the Tant caps at all places shown on the demo board (so 12V input, and both 5V and 3.3V outputs and directly between VDD and VSS as close to the chip as possible) and so far 12hrs running ok (thats 11hrs and 57 minutes more than before for 2 x chips!). That is all I've changed.
    Serial coms and EEPROM are all ok.
    All VDD and VSS pins were correctly connected.
    1) Stupid thing I did: I used Polyester film caps by mistake, not tants. Correct values, but wrong type of cap. I did not fully appreciate the reason to use one type over the other and I had the poly films to hand. Any words of wisdom on this?
    2) Not so stupid thing I've done no2 (but will rectify), you are correct I have directly connected the Max232 to the Prop in the belief that both were TTL spec. I have NO resistors. I'll do a bit of digging around and see what will be sensible to use unless any one has a suggestion? 1Kohm? At the rate of 1 chip per day I want to do what ever is sensible to protect my circuit!
    3) Interesting point I am using some reed 12V relays to interface the signals from my alarm panel into the Prop as digital inputs which are intended to be initiated from a completly seperate psu (they do have internal coil diodes). I was testing these using the same 12V bench PSU. I discovered one of these relays had shorted and effectivelly dragged the PSU down when it was initiated, this would have given the regs a kick and coupled with the wrong / missing caps 'could' have caused the damage?
    I found this out by putting the example 1 'led blinker' code in the EEPROM and then putting my code only into RAM. This is interesting as it will run the RAM code until the unit resets and then it immediatly shows that the prop has reset as it runs the code in EEPROM. So in my case initiating the relay caused the prop to reset as the psu voltage dipped.
    To be honest the circuit is very basic (read as not much to go wrong!). I'll try and get a piccy and up load for amusment sak
    Good job I'm still at the prototype stage so I can insert all these 'protective devices'.
    Some good learning for me out of this one.
    Cheers
    Jon
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2009-11-13 16:16
    Regarding connecting a 5V logic device (MAX232) to a 3.3V logic device ...

    There's a long thread in one of the "sticky" threads (Propeller: Getting Started and Key Thread Index) on this subject. The Propeller I/O pins have substrate diodes designed to conduct (to the supply rails) when an input goes above 3.9V or below -0.6V (one diode drop above Vdd or below Vss). These diodes are rated at 500uA, so any input resistor should limit the current to that. For 5V, that would be at least 2K.

    Any "noise" spikes on either supply line could damage the Prop. In particular, positive spikes on Vdd could easily exceed 4.0V, the point at which damage can occur (by puncturing gate oxide). Negative spikes on Vss typically due to ground loops can also cause the Vdd-Vss voltage to exceed 4V which would also begin to damage gate oxide layers. Positive and negative spikes on I/O pins can also drive current into the chip supply rails and, due to the resistance of the supply lines on-chip, can also cause voltage differences to occur between sections of the chip.

    Despite all this, the Propeller is actually pretty robust as these things go. Unlike a lot of microcontroller I/O circuitry, the Prop appears to be immune to I/O short circuits. The datasheet puts a maximum current limit on the I/O pins, but testing has not produced any failures.
  • BigFootBigFoot Posts: 259
    edited 2009-11-13 16:32
    I have always been amazed at how tough the Propeller chip is. We have sold thousands of
    Propeller based systems this year and none of them have been returned for an electrical
    problem.

    The trick is in designing the power supplies properly and good PC board layout. You need
    to pay very close attention to 5V interfaces and there protection resistors for the reasons
    that Mike explained above.

    Russ
  • LeonLeon Posts: 7,620
    edited 2009-11-13 18:21
    Jon:

    You should have used ceramic capacitors instead of tantalums, they are cheaper and smaller. Use a MAX3232 instead of the MAX232.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
  • jon123456789jon123456789 Posts: 11
    edited 2009-11-13 18:34
    Right, a redesigned layout is on the way to deal with interface and PSU protection.
    As a word of warning, I can also recommend against inserting tant caps the wrong way round late a night to get a circuit working and then leaving it to 'test' overnight when it seems to be ok.
    Result, a nice burnt patch on a (thankfully) none flammable table as one of the little blightlers acted like a time bomb fuse and must have popped many hours after the supply was turned on!
    A timly reminder that I really need to pay more attention to this!
    PS, another blown chip!
    Jon
  • photomankcphotomankc Posts: 943
    edited 2009-11-13 18:43
    Tants are well known to be quite rabidly polar. They go up in flames when reversed. I really think I would start again from scratch rather than keep trying to fix that board which it sounds like you have decided to do.
  • jon123456789jon123456789 Posts: 11
    edited 2009-11-14 10:56
    i'm redesigning the layout incorporating all learning

    Cheers

    Jon
  • jon123456789jon123456789 Posts: 11
    edited 2009-11-14 11:17
    Leon,

    thanks, will do.

    Jon
Sign In or Register to comment.