Author Topic: Surge protection grounding and fail-safe biasing for isolated RS-485?  (Read 5031 times)

0 Members and 1 Guest are viewing this topic.

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Hi,

I have been going through Renesas' application notes regarding RS-485 transceivers, trying to figure out the best way to protect a transceiver against over-voltage scenarios for the data lines, for a ground potential difference scenario and also using fail-safe biasing. Looking at
https://www.renesas.com/us/en/document/apn/an1979-surge-protection-simplified-renesas-overvoltage-protected-ovp-transceivers,
https://www.renesas.com/us/en/document/apn/an1979-surge-protection-simplified-renesas-overvoltage-protected-ovp-transceivers,
https://www.renesas.com/us/en/document/apn/an1980-ground-potential-differences-origin-and-remedies and
https://www.renesas.com/us/en/document/apn/an1986-external-fail-safe-biasing-rs-485-networks,
I find that each concept makes sense on its own. However, I am not sure how to combine them.

Here are some specific questions that I have:
-If I isolate the transceiver against a ground potential difference using a small DC-DC transformer and I have either a floating or a shared isolated ground between transceivers, and that I use surge protection for the data lines using TVS, OCP and OVP, these surge protection devices should be connected to the isolated ground I assume if I want to retain the support for ground potential difference? If I do that and a surge occurs, this can potentially create an over-voltage condition between the isolated and the non-isolated ground as surge clamping occurs between the data lines and the isolated ground. Should I then use surge protection between the isolated and non-isolated grounds to protect the transformer? If I do, I assume I should clamp it to a separate neutral line?
-Regarding the fail-safe biasing circuit, should this be located right next to the transceiver, after then 10 Ohm pulse-protected resistors or outside the surge protection circuit? Since the resistor values for the fail-safe biasing circuit can depend heavily on the network and noise situation, I assume it would be preferable to be able to select resistors as desired, instead of using DIP switches attached to specific resistance values? How is this usually handled (separate screw terminals, etc?)

Thanks!!
« Last Edit: March 01, 2023, 03:18:38 pm by kreyszig »
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3596
  • Country: fr
  • EE for 55 yrs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #1 on: March 01, 2023, 03:08:49 pm »
environment? transients threat level? max legnth of cable? Signal rate?

j
The Internet Dinosaur
 
The following users thanked this post: kreyszig

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #2 on: March 01, 2023, 03:25:11 pm »
environment? transients threat level? max legnth of cable? Signal rate?

j

Thanks. I am trying to keep this device as flexible as possible for other applications, but I would like to support signal rate of 1 Mbps or more, and I am using a 5 V DC-DC transformer with 1000 Vrms isolation, so it is mostly to avoid ground loop issues and not for surge protection. For surge protection I think IEC61000-4-5 Level 3 (2kV) should be sufficient.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #3 on: March 01, 2023, 03:33:51 pm »
You should probably give a schematic to show exactly what all you're thinking.

In the case of a pair of isolated transcievers as in AN1980 Fig.9,



Notice not just DC-DC but logic-level isolation is required as well.  It's a little unclear from your post if that was intended as well.

In this situation, we might apply a low-voltage TVS between signal pairs (for differential lines such as RS-485), and/or between signals and local transceiver ground (triangle symbol), to protect the transceiver.

If we expect transients higher in voltage than the isolation barrier's rating (when begs the question, why not increase that rating?), some manner of surge protection between earth or system ground (PE1/2) could be used.  Mind that that ground may then become electrified (momentarily due to ground-return inductance, or for the duration of the surge if isolated), so this is only reasonable when an earth ground is available, or the equipment is double insulated (making it touch-safe).

The local ground (triangle symbol) may be optional on the cable between transceivers.  I would recommend connecting it.  Without this ground, the receiver only gets a ground reference from its input divider resistors (internal to the chip), so the CMRR for high frequencies (above Fc = 1 / (2 pi R C) where R is the CM equivalent value of those resistors, and C is the isolation barrier capacitance) is reduced, i.e. you only get the CM immunity of the isolation barrier at low frequencies.

If the link is point-to-point (or limited other options), input filtering or even termination can be employed at the transceiver, in which case quite a low CM impedance to ground can be had, and the ground link is more optional.  These options are limited, because filtering loads the line (reducing some combination of the bitrate, length, or number of nodes sharing the bus), and only two nodes (at either end of the bus) can have the termination.

When termination is onboard a transceiver, the resistor can be split into two series halves, and the midpoint bypassed to local GND, giving a CM impedance of Zo/4.  This greatly enhances the value of, for example, a CMC (common-mode choke) into the transceiver.

As for fail-safe resistors, the pull-up/downs can be placed anywhere; the offset distributes along the whole line.  I don't know what 10 ohm resistors you're referring to; if they are series resistors, you probably want the pulls inside of the protective devices so they don't have to be pulse rated as well.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: kreyszig

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #4 on: March 01, 2023, 04:04:06 pm »
You should probably give a schematic to show exactly what all you're thinking.

In the case of a pair of isolated transcievers as in AN1980 Fig.9,

Thank you Tim. Yes I will give a schematic, it will make it easier to follow what I meant. Thank you for your feedback!
 

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #5 on: March 01, 2023, 05:15:48 pm »
Here is what I had in mind: I was wondering about D1 if I want to use a transformer mostly for ground loop suppression, also about GND3 (separate mains neutral to protect GND and GND2), and about the placement for R1-6. I am limited to about 600 mA of 5V supply out of my SMPS. I have selected the LPD5030V-333 DC-DC transformer for a Fly-Buck (Buck Fly-Back) design with a high efficiency.
« Last Edit: March 01, 2023, 05:30:59 pm by kreyszig »
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 6723
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #6 on: March 01, 2023, 05:29:05 pm »
this is what we use and passed safety regulations

adding tons of protection diode may not help much,  you have very good transceivers with 1kv or 3kv isolation ...

and the vcc iso is a fully isolated supply (ground included)  absolutley no tvs dioeds between them

we did saw in the past some diode leakages who where playing tricks   between ground levels ........
« Last Edit: March 01, 2023, 05:30:55 pm by coromonadalix »
 
The following users thanked this post: kreyszig

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #7 on: March 01, 2023, 05:37:34 pm »
this is what we use and passed safety regulations

adding tons of protection diode may not help much,  you have very good transceivers with 1kv or 3kv isolation ...

and the vcc iso is a fully isolated supply (ground included)  absolutley no tvs dioeds between them

we did saw in the past some diode leakages who where playing tricks   between ground levels ........

Thanks! I had made a different thread about my power supply (https://www.eevblog.com/forum/projects/efficient-regulated-5v-and-isolated-reg-5v-supply-from-unreg-2w-12-7-v/25/), but due to efficiency and part availability issues, it has been very challenging to me to me to come up with a regulated dual output 5V 600 mA total supply (non-isolated + isolated) from 12 V with ~80% efficiency, so I resorted to a Fly-Buck design with a CoilCraft transformer. I think they only had a couple of transformers that could work (one with 1kV, LPD5030V-333, and another one with 1.5kV isolation, LPD8035V-333, but note that the pads are very close to each other). I could not really find any better transformer from other manufacturers. I have found some solutions with SMPS modules if I was willing to pay $40-50 for the SMPS alone, which I found a bit too steep.

The type of power supply design from Murata you are using (5V in my case though) was amongst the less expensive solutions I considered, but their availability seemed limited.

Edit: When you say you had some diode leakage issues between ground levels, what kind of working voltage were you playing with for the diodes vs what you were expecting for ground levels? For what I had in mind, I would select the breakdown voltage as high as possible with only the sufficient margin required by the transformer isolation, so typically the breakdown voltage would be at least 100V above the expected difference between ground levels. Could diode leakage be an issue for this kind of application?
« Last Edit: March 01, 2023, 06:36:26 pm by kreyszig »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #8 on: March 01, 2023, 06:36:35 pm »
Is this actually RS-422?  It doesn't make much if any difference, but just to be specific.

ABSOLUTELY NO connection to neutral.  Neutral is mains.  Whether it's grounded at the panel is irrelevant: surges and crossed wiring can always show up.

You could use a connection to safety ground, but it's probably redundant from the GND side (is it not already grounded? would it be better fully isolated?).  A GDT could be used on the GND2 side to provide lightning immunity, again assuming a safety earth is available.  (The earthed GDT could also be placed in a facility entry box (SPD) so you don't have to worry about grounding the equipment.)

LPD5030V isn't a "DC-DC transformer".  I don't know if you intended to put a DC-DC converter module there for T1, or it's just a placeholder for such a circuit..?  Also not clear what you mean about "flybuck".  Maybe using the input regulator (12V input, 5V output for non-isolated side)?  Having an isolated output would be a nice side effect on that, yeah.  Do beware that you either need a synchronous converter (forced CCM) or guaranteed higher main-output load than isolated, else the isolated channel loads down the freewheel phase and goes out of regulation.  Which maybe isn't a great deal when you've got 100-200mA of potential load on that channel?

Tim
« Last Edit: March 01, 2023, 06:45:53 pm by T3sl4co1l »
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: kreyszig

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #9 on: March 01, 2023, 06:48:03 pm »
Is this actually RS-422?  It doesn't make much if any difference, but just to be specific.

ABSOLUTELY NO connection to neutral.  Neutral is mains.  Whether it's grounded at the panel is irrelevant: surges and crossed wiring can always show up.

You could use a connection to safety ground, but it's probably redundant from the GND side (is it not already grounded? would it be better fully isolated?).  A GDT could be used on the GND2 side to provide lightning immunity, again assuming a safety earth is available.  (The earthed GDT could also be placed in a facility entry box (SPD) so you don't have to worry about grounding the equipment.)

Tim

RS-485 Full duplex.

About the ground issue, I feed GND from another PCB which is the circuit I am trying to protect the most, so this is why I did not want to dump a surge into it. I was going to use mains neutral as it seemed to be recommended vs safety ground to avoid frying sensitive electronic equipment that can deal better with a surge on neutral than on safety ground. I understand your point about neutral crossed wiring and surges though. I would not want an issue with neutral to back feed in my circuit that is for sure. So would you use safety ground then?
 

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #10 on: March 01, 2023, 06:53:24 pm »
LPD5030V isn't a "DC-DC transformer".  I don't know if you intended to put a DC-DC converter module there for T1, or it's just a placeholder for such a circuit..?  Also not clear what you mean about "flybuck".  Maybe using the input regulator (12V input, 5V output for non-isolated side)?  Having an isolated output would be a nice side effect on that, yeah.  Do beware that you either need a synchronous converter (forced CCM) or guaranteed higher main-output load than isolated, else the isolated channel loads down the freewheel phase and goes out of regulation.  Which maybe isn't a great deal when you've got 100-200mA of potential load on that channel?

Tim

Hi Tim,

Yes I wanted to use forced PWM for the buck converter. Fly-Buck is simply the trademark name from TI for Buck + Fly-Back. TI uses constant ON time converters. I was going to use PWM in forced mode (MP4576), is that an issue? Here is my SMPS circuit. If you could tell me if it makes sense or not that would be great, you seem very knowledgeable about this kind of supply, you are the first member that mentions the need for forced CCM. Many had told me to use whatever buck converter I can find.
« Last Edit: March 01, 2023, 07:02:17 pm by kreyszig »
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3596
  • Country: fr
  • EE for 55 yrs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #11 on: March 01, 2023, 07:08:05 pm »
Tim: Application untended.....eg

 Use in industrial plant? Touring sound stage? Cinema? medical? \

Type of mains connection and feed?

Lightning frequency?

Inductive load transients?

What's the transient risk in the equip env?

PS: I Presented a detailed RS-485 REF design at AES Berlin 2017,
PM me if you like to see the design was ISO LVL 3 or 4 rated...

Jon
The Internet Dinosaur
 

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #12 on: March 01, 2023, 07:23:26 pm »
Tim: Application untended.....eg

 Use in industrial plant? Touring sound stage? Cinema? medical? \

Type of mains connection and feed?

Lightning frequency?

Inductive load transients?

What's the transient risk in the equip env?

PS: I Presented a detailed RS-485 REF design at AES Berlin 2017,
PM me if you like to see the design was ISO LVL 3 or 4 rated...

Jon

Industrial would be closer to the intended use I would say. One of the applications would be to power the board of a heat pump's PCB control port. My main concern for this application would be to protect VCC, GND and the UART lines of the heat pump's PCB against transient and surge that may occur on the RS-485's side. I wanted to make the board as flexible as reasonably possible, with the possibility of using 5-12V DC power input isolated from the UART RX/TX/VCC and GND (which in this case is relatively easy using a general purpose isolator, ISO7321C, given the 5-12 DC power supply is external). Also I wanted to allow for terminating and biasing resistors for the RS-485 lines as needed. The heat pump is powered by 240 VAC.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #13 on: March 01, 2023, 08:57:48 pm »
RS-485 Full duplex.

About the ground issue, I feed GND from another PCB which is the circuit I am trying to protect the most, so this is why I did not want to dump a surge into it. I was going to use mains neutral as it seemed to be recommended vs safety ground to avoid frying sensitive electronic equipment that can deal better with a surge on neutral than on safety ground. I understand your point about neutral crossed wiring and surges though. I would not want an issue with neutral to back feed in my circuit that is for sure. So would you use safety ground then?

Huh. I haven't seen anyone using those split transceivers before, and, I can't really think of a use-case for one at the moment.  Why would the pairs not simply be connected immediately together?

Note that putting separate pulls and TVS on them increases loading (resistance and capacitance), doubling the effect if they're wired to the same bus in the end anyway.  Maybe that doesn't matter here, dunno.

Grounding is always a locale dependent thing, check code in your area.  There is some legacy equipment I think which receives shared ground and neutral, or should be grounded with a separately wired lug (i.e. to the receptacle housing, or a water pipe, etc.).  Examples that come to mind are things like stoves, welders, etc.; years ago I had an AC welder box with a NEMA 6-50P, which is H1-N-H2 here (homes are wired with 240V CT).  Preferably these should just be upgraded to a safer combination, and obviously you can't design new equipment to such a standard.  Maybe it still matters if you're wiring to such equipment.


Yes I wanted to use forced PWM for the buck converter. Fly-Buck is simply the trademark name from TI for Buck + Fly-Back. TI uses constant ON time converters. I was going to use PWM in forced mode (MP4576), is that an issue? Here is my SMPS circuit. If you could tell me if it makes sense or not that would be great, you seem very knowledgeable about this kind of supply, you are the first member that mentions the need for forced CCM. Many had told me to use whatever buck converter I can find.

Yeah, that'll be fine then.

Regarding all the capacitors... what's 12V coming from? Do you have any particular EMI concerns about it (in or out)?

Note that all those caps do nothing about the common mode, which is likely the biggest concern here, having an isolated channel.

The caps don't do much because the larger (1, 10 uF) dominate the response, and the smaller values either don't have much if any less ESL, but their values are smaller so they have higher Q resonances with the larger ones, generally making response worse (peaks in the impedance / transmission at high frequencies).  Like, consider this case:





Note the capacitors (body, pad, trace and via) and trace lengths are represented by small inductors.

There are more valleys of low impedance which is nice, but the worst-case maximum is what matters, and you've put in several new peaks in so doing.

There are some old appnotes that recommend staggered or tapered values in parallel, which should be considered erroneous.  That might've been appropriate back in the days of THT capacitors, but it's sadly harmful most of the time with ceramic chips.

Better to use one or two large caps for low ESR/ESL at high frequency, then R plus a few in parallel for damping at middle frequency:





Here, a supply is at a modest distance (several cm, say) to the load.  R1 has been added (notice the value), or changed to a lossy bulk type (electrolytic, tantalum, polymer*) several times the value of the parallel low-ESR capacitor(s).

*Polymer are available in a range of ESRs, tants as well; they cluster lower than tant, but shop around and choose appropriate values.

You're kind of doing this already (e.g. C1-R1), but the values are inappropriate -- 0.1uF is far too little to do anything at all, and 10R is much too high compared to the surroundings.  If C31/C34 are ~adjacent, their loop inductance will be say 5-10nH so sqrt(10nH/5uF) ~= 44mR is what should be targeted, and then you'd need more like 20uF with the ESR, for which a chip electrolytic would be fine I suppose.  (ESR can be within say a factor of 2 of Zo = sqrt(L/C) and it's fine.)

Also keep in mind, the transceivers won't care very much about supply noise; maybe just a 10uF would be enough filtering there, and no chokes.  (So, you'll be fine in this regard.)  If it is found problematic, maybe a couple more caps, or adding a ferrite bead or small choke (in the <200mA range, a 1206 size ferrite bead in the 30-100R range should be adequate without too much saturation).

As for common mode, a 'Y' cap (in the sense of being ground-to-ground; potentially the safety rating is relevant here) might be used to return current coupled across the transformer, i.e. the switch node has some capacitance to the isolated side so the switching edge drives into the common mode.  And maybe some ferrite beads or whatever on the RS-485 connectors, to dampen the resonance created between the cable and that capacitance.  Which can be coupled (use a data line type CMC) if you need to keep differential bandwidth up.

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

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #14 on: March 01, 2023, 09:48:54 pm »
Huh. I haven't seen anyone using those split transceivers before, and, I can't really think of a use-case for one at the moment.  Why would the pairs not simply be connected immediately together?

Note that putting separate pulls and TVS on them increases loading (resistance and capacitance), doubling the effect if they're wired to the same bus in the end anyway.  Maybe that doesn't matter here, dunno.

Full duplex is not strictly needed, but I have a transceiver that supports it as well at the other end. I agree with you that it might increase loading

Grounding is always a locale dependent thing, check code in your area.  There is some legacy equipment I think which receives shared ground and neutral, or should be grounded with a separately wired lug (i.e. to the receptacle housing, or a water pipe, etc.).  Examples that come to mind are things like stoves, welders, etc.; years ago I had an AC welder box with a NEMA 6-50P, which is H1-N-H2 here (homes are wired with 240V CT).  Preferably these should just be upgraded to a safer combination, and obviously you can't design new equipment to such a standard.  Maybe it still matters if you're wiring to such equipment.

I will have to check this out more. Homes are wired 240V CT here as well, but there might be slight differences for grounding.

Yes I wanted to use forced PWM for the buck converter. Fly-Buck is simply the trademark name from TI for Buck + Fly-Back. TI uses constant ON time converters. I was going to use PWM in forced mode (MP4576), is that an issue? Here is my SMPS circuit. If you could tell me if it makes sense or not that would be great, you seem very knowledgeable about this kind of supply, you are the first member that mentions the need for forced CCM. Many had told me to use whatever buck converter I can find.

Yeah, that'll be fine then.

Regarding all the capacitors... what's 12V coming from? Do you have any particular EMI concerns about it (in or out)?

Note that all those caps do nothing about the common mode, which is likely the biggest concern here, having an isolated channel.

The caps don't do much because the larger (1, 10 uF) dominate the response, and the smaller values either don't have much if any less ESL, but their values are smaller so they have higher Q resonances with the larger ones, generally making response worse (peaks in the impedance / transmission at high frequencies).  Like, consider this case:





Note the capacitors (body, pad, trace and via) and trace lengths are represented by small inductors.

There are more valleys of low impedance which is nice, but the worst-case maximum is what matters, and you've put in several new peaks in so doing.

There are some old appnotes that recommend staggered or tapered values in parallel, which should be considered erroneous.  That might've been appropriate back in the days of THT capacitors, but it's sadly harmful most of the time with ceramic chips.

For the application I mentioned earlier, the 12V is coming from a control port from the main board of the heat pump that can supply 3-4W. I do not have particular EMI concerns. For my circuit I basically took the circuit in the MP4576 datasheet https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP4576GQBE/document_id/9740/ "Figure 9: Typical Application Circuit with EMI Filters" and made the minimal changes to force PWM and to add the Fly-back. I stuck to that because honestly I have very limited experience with EMI and I was just attempting to play it safe. I was a bit surprised about the quantity of caps compared to what was suggested for other converters. Something I noticed too is that they where using much larger caps than TI in general. What is your workflow when you test this type of circuit? Do you go through multiple iterations of reflowed PCBs, or use some kind of breakout boards for these small SMD chips, or solder tiny wires to it, etc? This is a bit why I was not attempting to be adventurous at all with my design, just stick to their suggestion and then test everything. I will need to do some homework and learning to fully appreciate and follow what you suggested, I could certainly not argue against anything you mentioned vs the suggested circuit they provided.
 

Online coppercone2

  • Super Contributor
  • ***
  • Posts: 10787
  • Country: us
  • $
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #15 on: March 01, 2023, 10:53:47 pm »
fail safe = pay someone to manage it
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #16 on: March 01, 2023, 11:27:04 pm »
Well, having done a few dozen of these, my workflow is to place and route things the way that works. :P

Their layout example is rather odd and I wouldn't recommend doing all that.  Just place things close together, with priority to the switching loop (VCC, SW, GND; VCC-GND bypass cap, and, there's no SW diode but put that close in for non-sync types).  BST can be somewhat more distant (occasionally a via or two needed).  VFB even more distant (it's a low frequency control signal).  Place critical components adjacent on the same side.  Pour GND on the nearest layer (for top-side placement, bottom or Mid 1).  What's on other layers below GND doesn't matter too much, you may just prefer to route sensitive signal traces around the general area of the converter (because a ground plane is not quite ideal).  Usually for 4-layer boards you'd do signal-GND-VCC-signal, and that's fine.

Also their EMI measurements are irrelevant as no layout is given.  It's not clear if that was measured with the one layout, or, which schematic; and, the location of the connectors especially is critical.

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

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #17 on: March 02, 2023, 12:43:26 am »
Well, having done a few dozen of these, my workflow is to place and route things the way that works. :P

Their layout example is rather odd and I wouldn't recommend doing all that.  Just place things close together, with priority to the switching loop (VCC, SW, GND; VCC-GND bypass cap, and, there's no SW diode but put that close in for non-sync types).  BST can be somewhat more distant (occasionally a via or two needed).  VFB even more distant (it's a low frequency control signal).  Place critical components adjacent on the same side.  Pour GND on the nearest layer (for top-side placement, bottom or Mid 1).  What's on other layers below GND doesn't matter too much, you may just prefer to route sensitive signal traces around the general area of the converter (because a ground plane is not quite ideal).  Usually for 4-layer boards you'd do signal-GND-VCC-signal, and that's fine.

Also their EMI measurements are irrelevant as no layout is given.  It's not clear if that was measured with the one layout, or, which schematic; and, the location of the connectors especially is critical.

Tim

I had basically the same layout as them, adapted for the Fly-back with all their extra capacitors for EMI (see attachment). What is wrong with their layout, just too complicated?
« Last Edit: March 02, 2023, 12:48:10 am by kreyszig »
 

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #18 on: March 02, 2023, 01:02:12 am »
About the filters, did I get this right that you would go for something that looks more like that? You mentioned a few things about the larger capacitor and I am not sure if this is what you meant. Thanks!
« Last Edit: March 02, 2023, 03:20:59 am by kreyszig »
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8838
  • Country: fi
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #19 on: March 02, 2023, 10:41:12 am »
fail safe = pay someone to manage it

"Fail safe biasing" is just an arbitrary name for something that has absolutely nothing to do with failing safely, or safety against failures, or anything like that, whatsoever. Misnomers in electronics are commonplace, but I think "fail-safe biasing" is my #1 favorite. Of course, by failing to have biasing, the system will fail to operate by losing noise margins almost completely (which are not that magnificent even with the biasing, RS485 is just flawed), but by the same logic, every other functional feature is "fail safe", like fail safe termination, fail safe powering, fail safe guessing A and B labeling right, and so on.

RS485 is just so sad. It could have been a useful thing but resulted in colossal mess causing countless of hours lost at industrial end-users debugging trivial things like signal integrity, due to a few simple but serious design errors and weird practices (the idle state biasing farce, commonplace advice of not connecting any ground wire at all, and inability to define coherent names for the two signals so that the only way is to test, which is frustrating if there are more combinations of other parameters that require "just testing" and your only feedback is works/doesn't work).

The best thing CAN did was fix all these problems. It's easy to wire up and just works.
« Last Edit: March 02, 2023, 10:42:50 am by Siwastaja »
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3894
  • Country: nl
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #20 on: March 02, 2023, 10:51:27 am »
The circuit posted by kreyszig does not look correct. You can have pulse overload protected resistors, but that does not help much if they are only connected to the RS485 IC itself. Once a significant current flows though it's pins, it's usually toast. (But there are some with built in TVS diodes).

To me it makes more sense to put these resistors between the connector and the TVS diodes, This way the current though the TVS diodes is limited a bit by the resistors, and the resistors can actually have their high peak dissipation without anything getting damaged.

If you do a picture search for "RS485 TVS" you find both schematic variants.

If you want to protect against a hard DC overvoltage, you can also add PPTC's in series with the data lines.
« Last Edit: March 02, 2023, 11:46:08 am by Doctorandus_P »
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3596
  • Country: fr
  • EE for 55 yrs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #21 on: March 02, 2023, 11:06:21 am »
Siwastaja
many fine designer's have successfully used RS-485 since 1980s, it is embedded Ina vast majority of serial bal signaling systems.

CAN bus is specifically for short run automotive

The standards reveal the fan out, cable legnth, baud rates.

Totally different PHY

J
« Last Edit: March 02, 2023, 11:36:28 am by jonpaul »
The Internet Dinosaur
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #22 on: March 02, 2023, 01:56:18 pm »
Siwastaja
many fine designer's have successfully used RS-485 since 1980s, it is embedded Ina vast majority of serial bal signaling systems.

CAN bus is specifically for short run automotive

The standards reveal the fan out, cable legnth, baud rates.

Totally different PHY

J

Well... not exactly totally.  As I understand it, CAN was developed with RS-485 components in the first place.  It's merely evolved, adding the input offset, extended CM range, and using unidirectional drive as part of multi-drop arbitration.

CAN is alright over long distances, but because of the arbitration scheme, baud rate is limited by bus length, so it simply gets less and less useful as you go up.

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

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8838
  • Country: fi
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #23 on: March 02, 2023, 02:08:44 pm »
Siwastaja
many fine designer's have successfully used RS-485 since 1980s, it is embedded Ina vast majority of serial bal signaling systems.

And many fine installers have struggled getting them to work, or get them marginally work in easy lab conditions, but then signal integrity falls apart because noise immunity is nowhere near the advertising in real systems which use transition from idle to signify a start bit (i.e., almost all that use RS485 as underlying physical transport).

And then the work commences, reverse-engineering products to see which transceiver ICs they use, to be able to calculate the required external bias resistors, as carefully explained in numerous appnotes. This is an interoperability issue; not a problem if the Fine Designer designs all participant devices on a bus. And of course, assuming Fine Designers have ever heard about the need of biasing.

Especially if the designers themselves suffer from egoism, it's highly likely they missed something due to lack of humility.
 

Offline kreyszigTopic starter

  • Regular Contributor
  • *
  • Posts: 131
  • Country: ca
Re: Surge protection grounding and fail-safe biasing for isolated RS-485?
« Reply #24 on: March 02, 2023, 02:17:57 pm »
The circuit posted by kreyszig does not look correct. You can have pulse overload protected resistors, but that does not help much if they are only connected to the RS485 IC itself. Once a significant current flows though it's pins, it's usually toast. (But there are some with built in TVS diodes).

To me it makes more sense to put these resistors between the connector and the TVS diodes, This way the current though the TVS diodes is limited a bit by the resistors, and the resistors can actually have their high peak dissipation without anything getting damaged.

If you do a picture search for "RS485 TVS" you find both schematic variants.

If you want to protect against a hard DC overvoltage, you can also add PPTC's in series with the data lines.

My understanding is that these resistors are used to avoid interference between the TVS and the transceiver built-in protection. This is what Renesas mentions in their application notes at least.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf