Shop OBEX P1 Docs P2 Docs Learn Events
Ahhh.... wierd, inexplicable failure.... just love it!!! — Parallax Forums

Ahhh.... wierd, inexplicable failure.... just love it!!!

photomankcphotomankc Posts: 943
edited 2009-09-16 05:02 in Propeller 1
Things were going well in my experimentation with I2C last night. I was working with TimMoore's Propeller slave object on one board and his I2C scanning object on another. The Prop slave was showing up in the scan and I was about to move on to reading and writing some data. The slave board is the GG Propeller Platform with attached LCD UI. and the other board is a custom job but with 12 I/O lines brought out to a header for easy breadboard hookup. I took that board down to add in a 5v regulator and that worked out fine but when I turned on the Prop Platform board it had gone poof between the last time I turned it on and now.

The only external connection was SCL and SDA between the boards and they were sharing Vin supply although at the time they could end up with one being one and the other being off (I have since changed that). So I took out the meter and checked everything and found no unexpected voltages about. Swapping out the prop chip brought the dead board back to life. But now I am very nervous that I have a problem that's a slow killer somewhere. I did notice a few times just before it died where it wouldn't start running it's program sometimes and a reprogramming or reset would seem to fix it. I really didn't expect there to be much chance for the I2C connections to do harm. The SCL and SDA are both pulled up by the Prop Platform board with 10K resistors. I wonder if this was a static kill? Could having one board on and the other off be a problem?

Anyway, just frustrating. I can't see what could have zapped it like that and at $8.00 a pop it's not something I want to keep doing. I think that if the magic smoke escapes then by God I should at least actually get to see it and smell it.

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2009-09-15 18:24
    Are the 2 systems ground connected together even when off? Otherwise the ground voltage differences between the 2 systems can cause problems.
  • photomankcphotomankc Posts: 943
    edited 2009-09-15 18:56
    Yeah they should be. In the old setup System 1 (the custom board) was powered via the barrel plug from a wall adapter, then power was shared from it's Vin over to System 2 (The Prop Platform) via a header-->barrel plug adapter that carried GND, and Vin to System 2's barrel plug. System 2 had a power switch on the positive input rail so even if it were switched off it should have had a GND connection between them.

    Now I have reversed that. System 2 is powered from the wall and then I take power (Vin) over to System 1 via the headers. This way they are switched on together from System 2's power switch.

    Is it normal for damage to an input to kill the whole chip? It not only can't run the eeprom program, which I would expect if I damaged the I2C pins but it won't talk via the prop plug either so you can't ID it nor download a program to RAM.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-09-15 19:31
    Are all the power supply pins connected? You really can't attach one Vdd or Vss pin to the power supply and expect power to appear on the other side of the chip (and the other Vdd and Vss pins) without problems occurring. Both Vdd pins have to be connected to +3.3V and both Vss pins have to be connected to ground. You have to have at least one 0.1uF capacitor connected across Vdd and Vss close to the Propeller chip. This is a known failure mode along with power spikes on Vdd or Vss driving Vdd above about +3.6V or Vss below about -0.6V.

    Voltage spikes above Vdd+0.6V or below Vss-0.6V on an I/O pin can damage the chip unless the current is limited (by a resistor) to less than 500uA. The Propeller chip is a bit more robust than that, but don't push your luck.
  • photomankcphotomankc Posts: 943
    edited 2009-09-15 19:48
    Oh yeah. Both systems had the power attached properly on both sides of the chip and bypass capacitors installed on each as well. Probing with the multimeter showed everything as expected voltage-wise.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-09-15 22:03
    It sounds like one prop (A) was driving the SCL line and leaving it high and while it's connected to the other powered down system (B). The I/O pins can source enough current to damage the substrate (which is usually viewed as the "protection" diodes) on the unpowered chip. Use a meter on the diode range and connected the meter- to VDD and probe the I/O pins on the damaged Prop, you will probably find the SCL reads very different. Use this basic back-to-front diode check on any chip to check for substrate damage, also by connecting the meter+ to GND as well.

    Such a design would have worked fine if it used true open-drain structures for the I2C lines but on the Prop they are emulated and the choice is left to the software whether to drive the SCL line high or rely upon a pullup. Alternatively a small value series resistor could be used in the lines (220R) to limit the current to a level that the substrate can handle. You usually find that the driving pin survives short-circuiting as it is a more rugged structure.

    *Peter*
  • photomankcphotomankc Posts: 943
    edited 2009-09-16 02:12
    Ok diode check went thusly:

    Good Prop:
    Positive lead on Vdd and Negative on I/O pins..... OF
    Negative Lead on Vdd and Positive on I/O pins..... about 0.6V

    Dead Prop:
    Positive lead on Vdd and Negative on I/O pins..... about 0.4V
    Negative Lead on Vdd and Positive on I/O pins..... about 0.6V


    So apparently I managed to zap it somehow.· The above test showed the same results on all I/O pins on both the good and the dead Props.· Whatever happened it killed more than the SCL line.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-09-16 05:02
    Ok, that sounds just like it is substrate damage, nothing to do with the Prop itself, just IC's in general.

    For those who may be wondering.....
    Because the Prop is an "integrated circuit" all the components are integrated onto one silicon substrate so they are never really isolated from one another except by (to keep it simple) reversed biased junctions or perhaps silicon dioxide in the case of layers of interconnect masks. You know that the Prop is a CMOS chip, well CMOS means complementary (P&N or source and sink) as well as Metal Oxide Semiconductor, referring to the basic gate structure (mostly polysilicon these days) of the Field Effect Transistor (voltage controlled). But the oxide here and elsewhere doesn't conduct in any direction unless a voltage higher than the breakdown voltage is applied.

    The problem with I/O pins (not PLL) usually results from too much current flowing through the substrate from the pin which normally never draws any current except for leakage. The voltage limits that are spec'd for each pin is referenced to VDD and VSS meaning that 3.3V on a pin when VDD = 3.3V is ok but 3.3V on a pin where VDD is at 0V is 3 volts too much and current will flow through what are normally reversed biased junctions (non-conducting). Since all the components are built on the same substrate what affects one pin can affect many.

    In another thread someone mentioned that you need 220 ohm resistors on every I/O pin but of course you don't normally. However in connecting directly to other systems that are powered separately it is always wise to insert some current limit resistors for this and other reasons. Such is the case of prototyping boards that have breadboard areas etc. If there are already resistors in the circuit then it doesn't matter of course.

    It's in my interest to check these things myself so I will sacrifice a Prop or two to see what happens (I have some DIPs for this purpose!!). I will start by measuring the short-circuit current available from the I/O pin and then apply that to an unpowered Prop while logging the current flow to see if there is any discernible mechanism involved such as thermal build-up and failure or just plain zapped. What a shame it's not Hollywood because we would have such a nice pyro display otherwise, even just by feeding in the wrong program I believe. Hollywood, where you only need a one pixel chip because why waste all those other pixels when software can enhance to the nth degree to extract the face in the background from the mirror in the background etc etc. Now I'm just rambling....

    @Parallax: Do you have any test results from induced failure to share? Would you agree with this theory that the Prop can be zapped in this manner? I ask because I know the Prop is rugged as chips go, but it's the very nature of the Prop that sees it being hooked to all things imaginable.

    *Peter*
Sign In or Register to comment.