Practical Circuit for RS422 and RS485
I'm working on an interface PCB for a single board computer, it has a single UART with flow control. RS485 is popular for VFDs and stuff but I tend to like to use RS422 for non-standard stuff. Most RS485 full duplex transceivers are also labeled for use with RS422 but most RS485 is half duplex. The half duplex RS485 chips always show an internal schematic of the non-inverting and inverting driver and receiver pins just being tied together internally so I think this works as a jumper selectable RS422/RS485 full/half duplex arrangement. Hoping somebody who plays with alot of serial will weigh in (paging PCW)
Attachments:
Please Log in or Create an account to join the conversation.
If you need RE (you don't with Mesa UARTS since they can mask echos during Xmit)
you need a pullup on RD so the RXdata takes an idle state when not driven.
For RS-485 use you need to pullup (to 5V) on RX+ and pulldown (to gnd) on
RX- so the have a valid idle state when not driven by any RS-485 device.
These are typically 620 Ohm or so and do not materially interfere with RS-422 use.
For low speed links like Modbus on VFDs its better to be able to disconnect the ~100 Ohm
termination. Also if you add the 620 Ohm pullups and pulldowns you should to change
the termination resistor so the Thevenin equivalent is ~100 Ohms.
Please Log in or Create an account to join the conversation.
I don't need RTS, or CTS but it's there on the GPIO so I figured I may as well. Not sure about you but I like to reuse chips and schematics to make my life easier and while I don't have a Mesa use for RS485 at the moment, since I've been fond of messing with a 7i92 it might find it's way onto something eventually. SSerial RS422 is alot simpler so I've got that covered.
By "you need a pullup on RD", do you mean RO (Reciever Output) prior to the level shifter?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I think this works with just adding a single extra jumper for the termination resistor, but I'm not sure how to calculate the Thevenin for something like this.....Think it's just another 620r resistor?
Attachments:
Please Log in or Create an account to join the conversation.
difference is only in the 100 -200 Pico second range.
The differential termination impedance is basically the main
(~100 Ohm) termination resistance in parallel with 1240 Ohms
(just imagine the pullup and pulldown resistors connected together instead
of +5V and GND at the non RX ends so as far as differential impedance
goes, they are in series. We usually use 120 Ohms (this is a bit high but
% overshoot from mismatched termination is only about 50% of the error,
and I would rather have a bit of overshoot and a larger signal)
Please Log in or Create an account to join the conversation.
Yeah that's pretty much where I was losing it, couldn't imagine how the pull up and pull down equated to a series resistance but if they are basically treated as they are directly in series it's much easier to wrap my head around.The differential termination impedance is basically the main
(~100 Ohm) termination resistance in parallel with 1240 Ohms
(just imagine the pullup and pulldown resistors connected together instead
of +5V and GND
So 120r for the jumpered terminator? Easy enough to swap resistors one the footprint is on the PCB, much easier than cutting traces and bodging wires if the circuit is incorrect.
Please Log in or Create an account to join the conversation.
the main termination resistor so no 0603's (we usually use 1206 for this)
Please Log in or Create an account to join the conversation.
Quick OT question since I'm thinking about differential signals. I have heard multiple times that "differential transmitters, 74 series, etc.... don't have the drive strength to run external step drivers." I think the clearpath manual actually warns against it IIRC. I usually use a SN75174 which I think is EOL so I have to find something else but I never had any problems with it, Clearpaths, optocoupled drivers etc. Any thoughts?
Please Log in or Create an account to join the conversation.
Since they have full 5V output swing and lots of current
output capability. Parts like the MAX3042 also have 5V
outputs, but are typically much more expensive.
Regular 75174s, 34C87s etc don't have 5V output swings
so are marginal driving typical opto-coupled step driver
inputs.
Please Log in or Create an account to join the conversation.