6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 12:58 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Diodes for serial port?
PostPosted: Tue Sep 04, 2018 1:44 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
A while back, I fried some chips on a SBC (actually, I've done it more than once) because I was stupid and didn't closely investigate that the SBC didn't have a voltage regulator. So I put 12V into a 5V circuit before I realized there was no protection.

I want to start learning about good design practices when it comes to protection. Mainly to protect from idiots like me.

So, is it good practice to put some diodes between the internal MAX238 chip and the external serial port? For example, to only allow "traffic" to flow through Rx/Tx in the correct direction? What about the other pins?

Looking in the datasheet, I don't see any example circuits. Only test circuits and functional diagrams.

Thanks!

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 04, 2018 1:57 pm 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
Image

My solution was to have 100 Ohm resistors in the RS232 inputs\outputs that go outside the PCB,
also 100 Ohm resistors in the I\O pins of the 6522 chips (because in that time frame I had problems with buying 6522 chips),
a TVS diode between +5V and GND (transient voltage supressor diode, that SMD part below the voltage regulator),
a +5V voltage regulator soldered to the PCB (the "heatsink" had turned out to be too small when plugging some more PCBs to the bus),

...and to use a 3 pin screw terminal for the power supply with +9V at the pin in the middle and GND at the outer pins
(what makes reversing the power supply voltage by mixing up +9V and GND wires by accident a bit more difficult).


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 04, 2018 2:13 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
On the MAXIM RS232 drivers, RS232 inputs can handle +/- 25V or better and both the inputs and outputs can handle continuous sort circuits. They are pretty robust and I would guess they don't need further protection unless you foresee stresses beyond what I've just mentioned.

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 04, 2018 2:31 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Diodes won't block traffic in a given direction, they'd only block transitions in a given direction. You could use some kind of clamp diode idea to prevent over-voltage, but as Bill notes, a driver chip might well already have good protection.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 04, 2018 2:45 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Ah, good point. Those chips are quite robust indeed.

Thanks for the tips!

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 04, 2018 3:58 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
cbmeeks wrote:
A while back, I fried some chips on a SBC...So, is it good practice to put some diodes between the internal MAX238 chip and the external serial port?

Short answer is not necessary.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 13, 2018 10:51 am 
Offline
User avatar

Joined: Thu May 14, 2015 9:20 pm
Posts: 155
Location: UK
Diodes when used for protection are most useful if used as clamp circuits.
But you do need a in-line resistor in series with the input or output.

The diodes then are wired from the signal line (on the internal circuit side of the resistor). One to the relevant positive supply rail. The other to the relevant negative or 0V or ground supply rail.

The diodes should be wired so that they are normally reversed biased. Fast response diodes are recommended (1N400x or other diodes intended for mains rectification are too slow for semiconductor production), and they should be rated so that they can handle the maximum expected over voltage and the current that flows at this over voltage. For circuits where the in-line resistor can be a fairly high and the protection voltage is not too high, signal diodes like 1N4148 can sometimes be used.

Protection of DC supply inputs from over voltage is far more tricky. The best protection is by using different plugs and sockets for different voltages. But for existing equipment this is of course difficult or not practical...

And most people who do electronic tinkering at some stage have killed something! At work, we used to be responsible for some telecommunications equipment. It came in both 12V DC and 50V DC versions, with the only difference being the part number. Both used the same DIN connector. Guess who connected a 12V unit to a 50V system....! :oops:

Inside it used 4000 series logic chips. One was blown apart, and none of the rest worked. I had to replace all of them.

Mark


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 13, 2018 7:01 pm 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
I would recommend sockets - just in case :wink:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: