Author Topic: poor mans differential line driver & receiver?  (Read 2705 times)

0 Members and 2 Guests are viewing this topic.

Offline max_torqueTopic starter

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: gb
    • bitdynamics
poor mans differential line driver & receiver?
« on: January 12, 2022, 07:55:18 pm »
As i'm sure oyu all know, right now the supply of any component that is in anyway even slightly specalist, and lots of parts that are not even specalist at all, is very, very constrained!

I'm trying to design out some digital isolators from a design to enable us to make that product  :palm:

Now, those isolators are not actually needed for their galvanic isolation as such, because the boundary across which the signals go is not, broadly speaking at two different ground potentials. However, the isolators we use to limit the coupling between the two sides for EMC reasons, because the power supplies of each side are heavily filtered etc.   We had tried std optocouplers in this position, but due to the extreme temperatrue range of the product, and ageing effects on speed and DTC etc, these were replaced with the now-impossible-to-get isolators.

After doing a bit of simulation and head scratching it looks like i can maintain enough EMC performance without galvanic isolation by moving to differential signalling. ie LVDS.  But same problem, i can't guarantee LVDS drivers are available without enormous lead times etc.


So, question.

Given that my data rate is really pretty slow, lets say up to 200kbs or so as a max, can i replace the digital isolators with a home-brew differential signalling type arrangement, using jelly bean logic and analogue parts?

The driver seems relatively easy, any comparitor or buffer with complimentary outputs can do some sort of psuedo differential or anti-phase type current loop output using fixed resistors. 

The diy reciever seems trickier to me however?  As the common mode ground offset could be 1Vpkpk dynamically, although the DC offset should be much lower, in the order of a few hundred mV

If i centred the dif output at half supply, lets say 2.5v, then the reciever needs to account for this surely?


I bet there are some nice tricks here i am missing   :-DD   It's hardly a new thing in electronics after all.


Any advice welcomed!   :-+
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: poor mans differential line driver & receiver?
« Reply #1 on: January 12, 2022, 08:15:55 pm »
Why LVDS over RS422?

Since the transmission path isn't very long at all, termination (and drive strength) aren't even very important; you might even just use a pair of logic gates for all that matters, eh?  Downside is propagation time likely won't match, but some filtering will address that.

LVDS/RS422 receivers are basically just glorified comparators, of course the latter having specified input offset and hysteresis.  If nothing else, you can do the same from plain comparators and a few resistors, no biggie.

What's wrong with single ended, anyway?  Digital logic rarely needs to carry much current.

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

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17196
  • Country: us
  • DavidH
Re: poor mans differential line driver & receiver?
« Reply #2 on: January 12, 2022, 08:27:18 pm »
Given that my data rate is really pretty slow, lets say up to 200kbs or so as a max, can i replace the digital isolators with a home-brew differential signalling type arrangement, using jelly bean logic and analogue parts?

It is completely feasible to make differential transmitters and receivers using basic building blocks.

Quote
The driver seems relatively easy, any comparitor or buffer with complimentary outputs can do some sort of psuedo differential or anti-phase type current loop output using fixed resistors.

Any logic gate function with complementary outputs can be used like a flip-flop or latch.  An analog comparator with complementary outputs could also be used.

Update: Or two analog comparators could be used with their inputs reversed.  The reason this might be done instead of using gates is to produce a more balanced output or level shift low voltage logic to a higher voltage.

Quote
The diy reciever seems trickier to me however?  As the common mode ground offset could be 1Vpkpk dynamically, although the DC offset should be much lower, in the order of a few hundred mV

The analog comparator is the basic building block of a differential logic receiver.  A common way to increase the input common mode range is to attenuate each signal before each comparator input.  This also attenuates the differential signal but comparators are plenty sensitive.  In the digital world, analog comparators are known as differential line receivers and optimized for speed over sensitivity.
« Last Edit: January 13, 2022, 03:17:21 am by David Hess »
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 8121
  • Country: ca
Re: poor mans differential line driver & receiver?
« Reply #3 on: January 12, 2022, 08:51:05 pm »
I used to use my pic's MCU comparator inputs.  I would swap the 2 IOs to output to software send differential RS485 TTL levels out while changing them into inputs in comparator mode and use the comparator status bit when in receive mode.  The downside is the software serializer.  The up side is no separate transceiver ICs.  I just use series resistors plus 2 load resistors so the comparator was also able to see an open bus condition.

And I still had the hardware UART free for local PC communication.  An all in 1 IC solution with bi-dir 485 and RS232 to my host.
« Last Edit: January 12, 2022, 08:52:48 pm by BrianHG »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: poor mans differential line driver & receiver?
« Reply #4 on: January 12, 2022, 09:13:31 pm »
Interesting that some MCUs even are rated for IO drive strength nearly comparable to RS-485.  They are however missing transient protection and outside-the-rails voltage tolerance.  So, given some improvements, nearly as capable as a proper device.

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

Offline max_torqueTopic starter

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: gb
    • bitdynamics
Re: poor mans differential line driver & receiver?
« Reply #5 on: January 12, 2022, 10:01:31 pm »
The choice of diffeential was to push the two lines through a fair bit of common mode choking, which obviously doesn't attentuate the diff signal, as that is always in counterpoint, but that hopefully allows, given some sensible pcb routing, to kill the EMC transmisson between the two devices. It also allows (most) the drive current come back to the transmitting boardm hopefully minimising the proportion that ends up coupled through the power rails between the devices (which as i say are heavily filtered)

In reality, i coupld probably do all that single-ended at the datarates i need, but from a pure EMC perspective diff just feels a better, and if i can do it with jelly bean parts, doesn't carry a particularly big cost overhead.  I have iirc, 6 or 8 data lines to get across the boundary, so a couple of CD4041's (old skool!) as the TX and some comparitors as the RX and we are away.


I need to work on the comparitor bit though. It feels to me that where the snaffu's lie?? ;-)
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 8121
  • Country: ca
Re: poor mans differential line driver & receiver?
« Reply #6 on: January 12, 2022, 10:37:43 pm »
Interesting that some MCUs even are rated for IO drive strength nearly comparable to RS-485.  They are however missing transient protection and outside-the-rails voltage tolerance.  So, given some improvements, nearly as capable as a proper device.

Tim
Series resistors and 2 dual diodes.
I have host and addressable monitor terminals on a regular 4 wire phone lines going through an entire apartment building with branches on each floor.
2 wires for 12v, 2 for bidirectional 485 data.  No problems at 9600baud.
Each terminal just has a regulator and a PIC with some LEDs, buttons and thermostat.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15406
  • Country: fr
Re: poor mans differential line driver & receiver?
« Reply #7 on: January 12, 2022, 11:20:44 pm »
Otherwise, just looking on Mouser, "lvds transceivers" yields a lot of parts that are in stock. Mostly TI parts from what I've seen.

 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: poor mans differential line driver & receiver?
« Reply #8 on: January 13, 2022, 12:44:58 am »
Interesting that some MCUs even are rated for IO drive strength nearly comparable to RS-485.  They are however missing transient protection and outside-the-rails voltage tolerance.  So, given some improvements, nearly as capable as a proper device.

Tim
Series resistors and 2 dual diodes.
I have host and addressable monitor terminals on a regular 4 wire phone lines going through an entire apartment building with branches on each floor.
2 wires for 12v, 2 for bidirectional 485 data.  No problems at 9600baud.
Each terminal just has a regulator and a PIC with some LEDs, buttons and thermostat.

Basically.  A few resistors to set impedances/levels/improve immunity, clamp diodes or TVS, maybe some filtering. :-+

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

Offline mazurov

  • Frequent Contributor
  • **
  • Posts: 524
  • Country: us
Re: poor mans differential line driver & receiver?
« Reply #9 on: January 13, 2022, 01:04:41 am »
Can you use CAN transceivers? They seem to always be available in one form or another.
With sufficient thrust, pigs fly just fine - RFC1925
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4766
  • Country: dk
Re: poor mans differential line driver & receiver?
« Reply #10 on: January 13, 2022, 01:14:03 am »
LCSC has few million different RS485 transcievers in stock, https://lcsc.com/products/RS-485-RS-422-ICs_578.html?keyword=rs485
many of them likely pin compatible
 

Offline eugene

  • Frequent Contributor
  • **
  • Posts: 496
  • Country: us
Re: poor mans differential line driver & receiver?
« Reply #11 on: January 13, 2022, 01:16:31 am »
Not sure if they qualify as jelly bean, and obviously no one can guarantee availability over the next 12 to 24 months, but I have noticed that many 8 pin RS485 transceivers share the same pinout. There might be some differences in spec's such as max speed or common mode complience, but you don't care if they can sustain 2Mbs or 12. With so many manufacturers making parts that are essentially pin compatible you stand a good chance of finding a source somewhere.
90% of quoted statistics are fictional
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17196
  • Country: us
  • DavidH
Re: poor mans differential line driver & receiver?
« Reply #12 on: January 13, 2022, 03:19:56 am »
Otherwise, just looking on Mouser, "lvds transceivers" yields a lot of parts that are in stock. Mostly TI parts from what I've seen.

There were other differential bus standards which used switched current outputs like LVDS but slower and cheaper.  Unfortunately they are mostly depreciated so parts are no longer commonly available and inexpensive.  Appletalk comes to mind.
« Last Edit: January 13, 2022, 03:23:45 am by David Hess »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: poor mans differential line driver & receiver?
« Reply #13 on: January 13, 2022, 07:55:12 am »
Appletalk was just RS-422. :)

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

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3596
  • Country: fr
  • EE for 55 yrs
Re: poor mans differential line driver & receiver?
« Reply #14 on: January 13, 2022, 11:45:55 am »
Bonjour,

For many protocols eg Ethernet,  the PHY has  a simple 1:1 transformer for isolation.

Very lowcost and isolation to 2 kV

Jon

The Internet Dinosaur
 

Offline max_torqueTopic starter

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: gb
    • bitdynamics
Re: poor mans differential line driver & receiver?
« Reply #15 on: January 13, 2022, 12:16:47 pm »
yup, i thought about using CAN, RS-422 or similar transceivers etc.  Cettainly workable, but the space to get my 8 channels in is going to be tricky, i also have fixed directionality for my signals.


And yes, there are indeed LVDS transcievers in stock, but again,  once i use a specific part, i might be setting myself up for a fall later, although to be fair, at the moment i dont' believe any part is immune to supply issues. However, with boggo logic gates and comparitors being so cheap, i can just simple buy enough reels of parts to cover my requirements for at least the next year i think, without having many $$$ of stock sat on the shelf


I guess with the comparator solution, the key is to ensure that in the case of no connection, ie floating inputs, the output state is fixed, ie to bias the input appropriately?
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17196
  • Country: us
  • DavidH
Re: poor mans differential line driver & receiver?
« Reply #16 on: January 13, 2022, 05:40:26 pm »
Appletalk was just RS-422. :)

Was it just RS-422?  An old Linear Technology application note showed a switched current drive transmitter and isolation transformers for other applications and I thought it was with Appletalk transceivers.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4766
  • Country: dk
Re: poor mans differential line driver & receiver?
« Reply #17 on: January 13, 2022, 06:10:05 pm »
Appletalk was just RS-422. :)

Was it just RS-422?  An old Linear Technology application note showed a switched current drive transmitter and isolation transformers for other applications and I thought it was with Appletalk transceivers.

https://en.wikipedia.org/wiki/AppleTalk#Physical_implementation
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: poor mans differential line driver & receiver?
« Reply #18 on: January 13, 2022, 06:14:44 pm »
Could be?  That's what Wiki says anyways.  And like, Ethernet and RS-422/485 aren't too dissimilar, broadly speaking.  Assuming your line coding is RZ, Manchester or other balanced code.  Don't know why it would need to be done quite that way though; maybe current was just for ease of symmetry (i.e. long tailed pair)?

Drive method doesn't really matter of course, analog might be easier with current mode, logic with voltage mode; the line needs to be terminated either way so Thevenin doesn't care.

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

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17196
  • Country: us
  • DavidH
Re: poor mans differential line driver & receiver?
« Reply #19 on: January 13, 2022, 06:44:26 pm »
Drive method doesn't really matter of course, analog might be easier with current mode, logic with voltage mode; the line needs to be terminated either way so Thevenin doesn't care.

LVDS despite its name is current driven.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: poor mans differential line driver & receiver?
« Reply #20 on: January 13, 2022, 08:03:40 pm »
Yup, and are at least commonly depicted as LTP driven.  So, likely the analog application case.

What they really do, who knows; they're rather secretive about that?

It's clearly not a 100% free floating situation, because the common mode impedance is rather modest (a few 100 ohms).  I don't know that the output voltage is ever much more than nominal, anyway (~300mV); honestly I haven't actually measured one so it may have a generous compliance range, I don't know.

I think one catch is they may use an all-Nch H-bridge between a CCS up and down each: notice this forces the pullup into saturation for Vout < Vg,hs(on) - Vgs(th).  Because it's not an ideal current source (after all, it's just another transistor).  So, this both sets a limit on output voltage (compliance range), and Vcm.  Again, don't know if that's actually representative of what they do, or if they're doing more/other things to maintain balance; just that from what little I've seen documented, it's a plausible mechanism.


CML, too (like HDMI, isn't it?).  Probably just because a single Nch mirror/sink is easier, and not having to be so big as to fully saturate, the tiny transistor can deliver quite high bandwidth.  Or most 10/100 Ethernet PHYs (into CT transformer!), but not the low-power or gig types (which use an H bridge or something).

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

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17196
  • Country: us
  • DavidH
Re: poor mans differential line driver & receiver?
« Reply #21 on: January 14, 2022, 11:44:13 am »
All of the ones I have studied are built on CMOS processes so the output current source and sink, and the switches are straightforward.  Older bipolar designs were historically built on bipolar NPN only processes so had to use totem-pole voltage output stages, like RS-422 and RS-485.

I think another reason for a current output stage is lack of ground and supply bounce, like with ECL, and lack of shoot-through.

I have designed and implemented a couple of discrete current mode RS-232 drivers with the output voltage limited by compliance and they worked fabulously, but of course they were not low power.

And old standard integrated RS-422 or RS-485 driver and receiver like the 75176 may be the way to go for this application.  Some were multiple sourced and reached essentially jellybean status.

« Last Edit: January 14, 2022, 11:51:10 am by David Hess »
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3596
  • Country: fr
  • EE for 55 yrs
Re: poor mans differential line driver & receiver?
« Reply #22 on: January 14, 2022, 11:55:56 am »
Reccomend Intersil ISL3259E transciever RS-485 15 kV protection

Jon
The Internet Dinosaur
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf