Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PC serial port precautions to be taken

Status
Not open for further replies.

varunme

Advanced Member level 3
Joined
Aug 10, 2011
Messages
741
Helped
17
Reputation
36
Reaction score
17
Trophy points
1,318
Activity points
5,764
What are the hardware precaution to be taken for interfacing a PC serial port (rs232) with a microcontroller ? , is there a need for using an optocoupler for isolating the micro from the serial line ?
 

I don't think you need to use opto for isolation. just make sure you use max232 ic and all its driving circuitry.
 

Opto is always nice for ultimate safety but not really needed. You can send from micro direct to PC but not from PC to micro as this is +-12v. You need to remove the - and clamp 12 to 5v. You can google for simpler circuits rather than MAX232 if you want, but the max is a good option as well.
 

The RS232 serial port on a PC uses +3 to +25 volts to signify a logic level of 0, and -3 to -25 volts to signify a logic level of 1.
In order for the PC and a microcontroller to successfully communicate some logic level translation is necessary.

There are many companies that manufacture modules that take care of the required logic level translation. The MAX 232 To RS232 Converter is one such module.....
 

ok , i already have a board with the rs232 (max) on it , but i fear , that can it make any problem to my PC , so i asked , I earlier interfaced parallel port with an optoisolator
 

PC serial port is usually pretty safe to connect to.

The only time I found a problem was attaching a monitor screen with a leaky transformer and it shocked the pc and killed the pcs rs232 chip.
 

Make sure all your RS232 connections are OK as datasheets suggest, and off you go!
 

Max232 for sure.
If you give a look at the datasheet, you will read somewhere stating that the EIA-RS233 (or V.24) must allow short circuit on its lines.
So the MAX232 is your best choice.
If I'm not mistaken, there is even a newer IC, MAX2323, that has all the boost capacitors built-in, making your hardware neater and cleaner.

Good luck!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top