BS2P40 Failures
Background:
I integrated the BS2P40 into a product and I have been getting random board failures. The boards function is limited to controlling a DAC and a few I/O pins. It gets is power from a DC/DC converter (RECOM R-785.0-0.5) that is powered from a 28V switching power supply. I pretty much implement the same circuit that is the BS2P40 module. So far, I have been unable to narrow down the cause of the problem(s).
Theories:
I noticed the 5V output of the DC/DC converter spikes after shut down. By shutdown I mean cutting 120VAC to the 28V switching power supply. This spiking happens shortly after and decays in the order of milliseconds. Sometimes it is a single spike, and other times it occurs twice. I would say that the overall peak of each spike is 2-3Volts. My thoughts on this are that this could corrupt the BASIC STAMP firmware. I understand that there is a brownout circuit in the SX-chip but I have read concern over its efficacy.
On my circuit board I used 1206 package capacitors and could not find a 5pF cap in this size for the oscillator circuit. I used a 4.7pF instead. I wouldn't expect this to be an issue but I figured I should mention it.
I should also mention that the boards all worked initially. They tend to fail after a series of calibration steps that involve switching power to the board on & off and communication via RS-232.
Any questions, comments or recommendations would be greatly appreciated.
I integrated the BS2P40 into a product and I have been getting random board failures. The boards function is limited to controlling a DAC and a few I/O pins. It gets is power from a DC/DC converter (RECOM R-785.0-0.5) that is powered from a 28V switching power supply. I pretty much implement the same circuit that is the BS2P40 module. So far, I have been unable to narrow down the cause of the problem(s).
Theories:
I noticed the 5V output of the DC/DC converter spikes after shut down. By shutdown I mean cutting 120VAC to the 28V switching power supply. This spiking happens shortly after and decays in the order of milliseconds. Sometimes it is a single spike, and other times it occurs twice. I would say that the overall peak of each spike is 2-3Volts. My thoughts on this are that this could corrupt the BASIC STAMP firmware. I understand that there is a brownout circuit in the SX-chip but I have read concern over its efficacy.
On my circuit board I used 1206 package capacitors and could not find a 5pF cap in this size for the oscillator circuit. I used a 4.7pF instead. I wouldn't expect this to be an issue but I figured I should mention it.
I should also mention that the boards all worked initially. They tend to fail after a series of calibration steps that involve switching power to the board on & off and communication via RS-232.
Any questions, comments or recommendations would be greatly appreciated.
Comments
Without much more detailed information, it would be difficult to provide much more than general advice. Generally, processor failures (if that's what's happening) are from voltage stresses, usually unexpected transient voltages. Since the board failed with just power cycling and RS232 communications, that's the place to look first. What kind of RS232 signal conditioning are you using? What happens if you cycle the power supply, but actually run the board off some other 5V source? Could switching transients from the 120VAC supply or the 28V supply couple through to the 5V supply?
The Basic Stamp firmware is difficult to corrupt. It would require multiple coordinated steps. The EEPROM used for storage of the Basic program tokens is also difficult to corrupt. It's much more likely for part of the chip itself to be destroyed from a voltage transient.
Does your board have a programming connector? Does the BS2p40 fail to be recognized by the Stamp Editor after a failure?
Post Edited (Mike Green) : 4/25/2008 2:18:37 PM GMT
I suggest that you use a DC to DC converter rated well over 28V (35V would be reasonable) and you probably should have a 6V Zener diode across the 5V supply lines as allenlane5 and I suggested, perhaps with a fuse in the 28V line in case the regulator fails.
Its part number is R-785.0-0.5.
I keep coming back to the power supply because it doesn't take much of a transient coupled through to the 5V supply to destroy logic ICs and power supply on/off transitions seems to be the situation where damage occurs.
Which leave's Mike's suggestion as the most likely issue. I'd still be tempted to put a 0.1 uF capacitor physically close to the BS2 across Vss and Vdd -- to provide some local transient supression for the module. Once upon a time, EVERY IC would be given it's own 0.1 uF cap physically close to it across Vcc and Gnd to supply current for short transients during switching.
Hopefully you'll get the issue with your circuit resolved soon.
Robert
An unstable oscillator also would not explain the behavior you're describing where the units fail after several power cycles.
The oscillator would not have anything to do with this failure you are seeing, I think, although if the Stamp is damaged the oscillator might or might not stop.
I join in the opinion that it has to do something with the power supply. It only takes a spike up to 28 volts for a few nanoseconds to do the damage.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Since you said all of these boards were initially working ok I doubt the resonator is the problem. I agree with Mike and think you might want to take another look at the power supply.
Does this only happen with the boards are installed and connected to all your external devices or have you seen failures like this just powering the boards themselves?
This may be a good time to step back and look at not only your board but also how everything is connected. Are there any ground loops? Are there any other ways to feed power back into the board that aren't anticipated?
I only noticed one cap on the line you use to reset the BASIC stamp during programming. I usually see another inline with the ATN line in many other examples people have made and I usually add one.
Robert
But I use 100uF electrolyt capacitor on its output as suggested by the linked datasheet.
You seem just to use 4.7uF
I used this datasheet which shows some different values.
http://www2.produktinfo.conrad.com/datenblaetter/150000-174999/154483-da-01-en-DC_DC-WANDLER_INNOLINE_R-785_0-0_5_SIP3.pdf
regards peter
Thank you all for your helpful input!