Author Topic: How to protect RS232 RX/TX lines from overvoltage/overcurrent, not from ESD?  (Read 11190 times)

0 Members and 2 Guests are viewing this topic.

Offline niccoppoTopic starter

  • Newbie
  • Posts: 6
  • Country: fr
Hello,

I have a DB9 connector RS232 compliant. This connector is attached to a PCB I designed using an MAX3232 IC to handle RS232 signal. I also have some TVS diodes to protect the RS232 lines against ESD. Everything works perfectly. Some of my users use the DB9 connector with the wrong device which is not RS232 compliant. This device sends 48V into RX/TX lines which destroys my PCB. I need a solution to protect the TX/RX lines against overvoltage/overcurrent. Can I use an IC eFuse for that? If yes, could you recommend a reference? If not, what kind of solution could be used?

Nicolas.
 

Online peter-h

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Protecting an RS232 input from 48V is easy - it has a Zin of about 3k (look at say a 14C89 data sheet circuit).

Protecting an RS232 output from 48V is harder because the Zout is about 300 ohms so you need beefier components.

The traditional but still crude approach to protecting from a continuous overvoltage might be something like this



Both lines have continuous protection but the 330R resistor will get hot, and a 5W part is a bit crazy so the fuse is worth putting in.

You will lose a bit of input sensitivity, and you will lose a bit of output drive, but for a 1:1 connection (RS232 is supposed to be 1:1 not multidrop) it will be fine.

For higher voltages you can do other stuff; I once implemented protection from 300V spikes of quite a long duration (100ms+) and that needed a SOT223 transistor and such.

Just realised - that zener needs to be a higher voltage because a MAX3232 swings up to a max of about +6V and -6V, so maybe a 5.6V one. Also the bottom diode (4001) needs to have a 5.6V zener in series with it so that RS232 driver can swing freely.
« Last Edit: November 11, 2023, 05:01:33 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 
The following users thanked this post: Smokey


Online peter-h

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Two problems with that chip:

- it is made by Maxim which is a super arrogant company (no way to phone or email them; you have to raise "tickets" on their website and basically the comms is one-way and there is no normal sort of comms with Sales) and their purchase by Analog Devices has not changed this stupid useless policy

- it is single sourced, and anybody using Maxim chips during the covid shortages will have got severely burnt, on availability, pricing, or both (the company was blatently opportunistic; I have designed out all Maxim chips from all products, except the MAX3089 which I am currently over the barrel on, but will get rid of it ASAP)

The method I suggest costs peanuts and uses common-as-muck commodity parts.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14454
  • Country: gb
    • Mike's Electric Stuff
Murata make some 0603 PTC thermistors  which are great for protecting data lines when connected in series

They will protect 3.3v unprotected PIC pins from direct connection to 24v. Not tried with 48v, maybe a couple in series.
I usually use the 100r ones.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline tom66

  • Super Contributor
  • ***
  • Posts: 8133
  • Country: gb
  • Professional HW / FPGA / Embedded Engr. & Hobbyist
Two problems with that chip:

- it is made by Maxim which is a super arrogant company (no way to phone or email them; you have to raise "tickets" on their website and basically the comms is one-way and there is no normal sort of comms with Sales) and their purchase by Analog Devices has not changed this stupid useless policy

- it is single sourced, and anybody using Maxim chips during the covid shortages will have got severely burnt, on availability, pricing, or both (the company was blatently opportunistic; I have designed out all Maxim chips from all products, except the MAX3089 which I am currently over the barrel on, but will get rid of it ASAP)

The method I suggest costs peanuts and uses common-as-muck commodity parts.

I've had no problem with Maxim during the semiconductor shortage.  They actually got a few design wins with us because TI/ADI/LinearTech couldn't manage it.  Their support is no worse than any other tier one supplier, try calling TI, good luck, you won't get to speak to an engineer I guarantee you that.

Your solution may work fine, but what if the board doesn't have space for a 5W resistor - that is non trivial in terms of size and space from a hot resistor. Also, destroying a fuse from a one-time overvoltage, if it is common, is not necessarily any good to the user if that means the device is RTB.

If the Maxim part wasn't an option, I'd consider something along the lines of your solution, with a lower power resistor but with a relay or other isolating device and a latching overvoltage detection circuit, that reset itself after a power cycle.  Perhaps a solid-state relay IC with optocoupler so you don't have to do any level shifting to get the MOSFET to switch.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Well, let's see.  Standard mitigations apply:
- Fuse (including of PTC type, polymer or ceramic) and TVS (esp. SIDAC type)
- Series resistor and clamp (as above schematic, but mind the voltage range better, as noted at the end)
- Current limiter, especially back-to-back depletion MOS, or CCSs + diode bridge for high bandwidth (ref: old Tektronix sampler input stages)
- AC/DC (MOS) type SSR + window comparator, turn it off when out of range (still needs a TVS or whatever to handle overvoltage/current before switch opens, some ~ms)
- Custom interface: receiver could be constructed from resistors and a comparator; transmitter could use discrete transistors to achieve much higher power dissipation and voltage range while meeting specs.

Mind, there is of course no such thing as a controller, just add external transistors, to pull off that last one.  Like, even given the analog experience I have, I would consider that more of a last resort.  Mainly / mostly / worstly because, making your own, the output slew rate, and feed-forward of internal switching noise, are not so well controlled, making it an EMI wildcard.  And it needs to be proven out over temperature, and it still takes more parts, more idle power consumption (and you need a +/-15V converter, not just a charge pump -- well, maybe, but either way it's not going to be integrated in a handy MAX232, eh?), etc.  Which is all testing I know how to do, and can do right here for that matter, and, YMMV of course, but needless to say it's going to be way more work than just... like... at that point, not even fuckin' using RS-232 anymore, right? :-DD

Which is of course one among many non-answer answers.  Others include: change the physical interface (don't use DE-9 or whatever!); stop using RS-232 (who even uses that anymore, right? Right?...); convince the customer that their interface(s) are dumb and need to change instead; etc..  (Obviously, contingent on how feasible any of these actually are.)

Tim
« Last Edit: November 12, 2023, 12:35:58 am by T3sl4co1l »
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2843
  • Country: au
Hello,

I have a DB9 connector RS232 compliant. This connector is attached to a PCB I designed using an MAX3232 IC to handle RS232 signal. I also have some TVS diodes to protect the RS232 lines against ESD. Everything works perfectly. Some of my users use the DB9 connector with the wrong device which is not RS232 compliant. This device sends 48V into RX/TX lines which destroys my PCB.
Ouch.
Default load spec for RS232 is > 3k, so 15V can deliver 5mA, as a driver. You need a driver series element that allows that, but limits energy from 48V
 
A LED current driver like NSI50010YT1G limits to ~10mA up to 50V, whilst dropping about 500mV at 5mA
Two of those in series, with two 14V series zeners, will limit the intrusion to 10mA/15V worst case, and be ok to +/- 65V

If you know the intrusion voltage is always one way, maybe a single NSI50010YT1G will be ok.

Depletion mode mosfets have less control on current, and adding series resistors gives more voltage drop.
« Last Edit: November 12, 2023, 09:17:50 am by PCB.Wiz »
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3855
  • Country: fr
  • Analog, magnetics, Power, HV, Audio, Cinema
    • IEEE Spectrum
Bonjour Monsieur, What is the threat level eg what are you protecting against?


No fuses needed. TAZ needs low C,


Series R >>Schottky catch diodes (NOT 1N4148!) to Vcc, GRD.

SMD arrays are available.

See extensive notes on RS-485 which is similar to RS 232.

Bon Chance,

Jon


The Internet Dinosaur..
passionate about analog electronics since 1950s
 

Online peter-h

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
A PTC thermistor is a good idea and would enable smaller resistors to be used.

Obviously it very greatly depends on whether you need continuous protection.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 16229
  • Country: de
A PTC or PTC type resettable fuse is indeed a good way to limit the current. It should be used in combination with a TVS or similar clamp.  Some types may even survive with mains for an extended time, though usually not certified for this.

As more fancy current limits one can use back to back depl. MOSFETs with a small resistor in between. The LED drivers can be similar, though they may be for DC only. The PTC fuse is still simpler.
 

Offline niccoppoTopic starter

  • Newbie
  • Posts: 6
  • Country: fr
Thanks a lot for helping me.

After reading you what I would try to test is to use a Zener Diode with a PTC thermistor.
Could you confirm the following design could work?

DB9 RX pin --> TVS diode (to handle ESD) --> two Zener diodes (to limit +/- 15V) --> PTC thermistor (to limit 10ma) -->  max3232
For the DB9 TX pin, a simple blocking diode should be enough because I am not supposed to accept input signal. DB9 TX pin --> TVS diode (to handle ESD) --> blocking diode (to reject incoming signal) --> max3232

My idea is to use a Zener diode first to limit voltage then after I could choose a PTC thermistor that works with a max voltage below 20V.  Could it work?
« Last Edit: November 12, 2023, 03:23:48 pm by niccoppo »
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14454
  • Country: gb
    • Mike's Electric Stuff
Thanks a lot for helping me.

After reading you what I would try to test is to use a Zener Diode with a PTC thermistor.
Could you confirm the following design could work?

DB9 RX pin --> TVS diode (to handle ESD) --> two Zener diodes (to limit +/- 15V) --> PTC thermistor (to limit 10ma) -->  max3232
For the DB9 TX pin, a simple blocking diode should be enough because I am not supposed to accept input signal. DB9 TX pin --> TVS diode (to handle ESD) --> blocking diode (to reject incoming signal) --> max3232

My idea is to use a Zener diode first to limit voltage then after I could choose a PTC thermistor that works with a max voltage below 20V.  Could it work?
the PTC should be on the external side - its main job is to protect the zener.
the Murata PTCs are PRG18BB101MB1RB
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 3232
  • Country: gb
The method I suggest costs peanuts and uses common-as-muck commodity parts.

Dissipating 5W continuous could have significant impact on the PCB, assembly, enclosure and therefore cost.
All the solutions above which do not involve dissipating several watts are a better option IMO.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 29462
  • Country: nl
    • NCT Developments
I'd go for a fuse (polyswitch / polyfuse) as a PTC resistor likely has too much resistance. Keep in mind that RS232 may run over long wires and putting too much resistance in series could affect the maximum baudrate. A typical cable has around 100pf / meter of capacitance so with 20 meters you'd already be looking at 2nf. With 500 Ohm in series (for example) you have created a 160Hz RC filter. And keep in mind the cross-talk as well.

My idea is to use a Zener diode first to limit voltage then after I could choose a PTC thermistor that works with a max voltage below 20V.  Could it work?
IMHO the best option is to have: external signal (in or out) -> 20mA polyfuse -> TVS diode (bi-directional! SMA size) -> 22 Ohm 0603 resistor -> max232

Keep in mind that RS232 uses negative and positive voltages for the signals!
« Last Edit: November 12, 2023, 04:57:52 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline niccoppoTopic starter

  • Newbie
  • Posts: 6
  • Country: fr
About the cable length, my users will not use more than 2m long. So the the cable resistance should not affect the baud rate.

It seems the Murata PRG18BB101MB1RB has a max voltage of 24V. I must handle up to 48v. Do you know a reference that could handle that max voltage?
Or could you recommend a reference of a 20mA polyfuse?
« Last Edit: November 12, 2023, 05:22:22 pm by niccoppo »
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
I'd go for a fuse (polyswitch / polyfuse) as a PTC resistor likely has too much resistance. Keep in mind that RS232 may run over long wires and putting too much resistance in series could affect the maximum baudrate. A typical cable has around 100pf / meter of capacitance so with 20 meters you'd already be looking at 2nf. With 500 Ohm in series (for example) you have created a 160Hz RC filter. And keep in mind the cross-talk as well.

You're kidding right?  This is RS-232, not RS-485; it's RC limited by design. Increasing resistance only reduces the baud-length product proportionally (or less if slew rate and current limiting are still dominant at the load conditions).

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 29462
  • Country: nl
    • NCT Developments
I'd go for a fuse (polyswitch / polyfuse) as a PTC resistor likely has too much resistance. Keep in mind that RS232 may run over long wires and putting too much resistance in series could affect the maximum baudrate. A typical cable has around 100pf / meter of capacitance so with 20 meters you'd already be looking at 2nf. With 500 Ohm in series (for example) you have created a 160Hz RC filter. And keep in mind the cross-talk as well.

You're kidding right?  This is RS-232, not RS-485; it's RC limited by design. Increasing resistance only reduces the baud-length product proportionally (or less if slew rate and current limiting are still dominant at the load conditions).
And? It still is a bad idea to add a considerable amount of series resistance to the transmitter if you want to achieve a reasonably high signalling rate or distance. A good rule of thumb is too have any kind of protection circuitry interfere as less as possible with the signals present in normal operating conditions.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
And? It still is a bad idea to add a considerable amount of series resistance to the transmitter if you want to achieve a reasonably high signalling rate or distance. A good rule of thumb is too have any kind of protection circuitry interfere as less as possible with the signals present in normal operating conditions.

Therein lies the key: "considerable".  You're the one saying it's bad, but you also just made up a number.  Typical transmitter impedances are hundreds of ohms, so it takes a lot to be worth consideration.

Ceramic PTCs are available in a wide range of values; the "on/off" ratio is quite reasonable for this I think, and polymer PTCs offer somewhat higher ratios albeit at lower temp ratings.  The R_hot simply needs to be high enough to keep power dissipation adequate given the component sizes/ratings (presumably, well under a watt for typical chip parts).

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 29462
  • Country: nl
    • NCT Developments
And? It still is a bad idea to add a considerable amount of series resistance to the transmitter if you want to achieve a reasonably high signalling rate or distance. A good rule of thumb is too have any kind of protection circuitry interfere as less as possible with the signals present in normal operating conditions.

Therein lies the key: "considerable".  You're the one saying it's bad, but you also just made up a number.  Typical transmitter impedances are hundreds of ohms, so it takes a lot to be worth consideration.
I didn't make up a number. I see others suggesting putting several 100 Ohm (room temperature) PTC resistors in series. This will add a significant amount of series resistance compared to the driver's output impedance (which could be 'tweaked' to support higher transmission rates). Secondly, a PTC resistor may dissipate quite a bit of power under worst case conditions. All in all, using a PTC style fuse (which has a much steeper on/off characteristic by design) is a better choice even though power dissipation will need to be considered.
« Last Edit: November 12, 2023, 07:12:05 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6486
  • Country: 00
What baud rate do you use?
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 4671
  • Country: nl
Another vote for the PPTC solution.

The TVS shorts over voltages (So no need to also add 1n4148 diodes) and the PPTC reduces the current though the TVS quick enough to prevent it from destructive behavior during a DC fault. But you have to watch the PPTC rating. A lot of them are rated for only quite low voltages, so be careful which one you pick.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 3570
  • Country: us
  • Not An Expert
Interesting.
 

Offline niccoppoTopic starter

  • Newbie
  • Posts: 6
  • Country: fr
Any reference suggestions for the PTC?
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2843
  • Country: au
Any reference suggestions for the PTC?

Maybe Littelfuse 0603L001/60, but you will need decent zeners (5W?) with a ptc style fuse.
Note this PTC approach will load the 48V to 330mA~2.2A  - can it manage that OK ?

That's why I favour the series 10mA current regulator diodes 2 x NSI50010YT1G. They only impose 10mA on a fault.


If you know the pins and polarity of the 'accidental 48V', you could design to that.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf