MAX232 Serial level converter
When communicating with various micro processors one needs to convert the RS232 levels down to lower levels, typically 3.3 or 5.0 Volts.
Â
Here is a cheap and simple way to do that.
Serial RS-232 (V.24) communication works with voltages -15V to +15V for high and low. On the other hand, TTL logic operates between 0V and +5V . Modern low power consumption logic operates in the range of 0V and +3.3V or even lower.
| RS-232 | TTL | Logic |
| -15V …Â -3V | +2V … +5V | High |
| +3V … +15V | 0V … +0.8VÂ | Low |
Â
Thus the RS-232 signal levels are far too high TTL electronics, and the negative RS-232 voltage for high can’t be handled at all by computer logic. To receive serial data from an RS-232 interface the voltage has to be reduced. Also the low and high voltage level has to be inverted.
Â
Â
This level converter uses a Max232 and five capacitors. The max232 is quite cheap (less than 5 dollars) or if youre lucky you can get a free sample from Maxim.
The MAX232 from Maxim was the first IC which in one package contains the necessary drivers and receivers to adapt the RS-232 signal voltage levels to TTL logic. It became popular, because it just needs one voltage (+5V or +3.3V) and generates the necessary RS-232 voltage levels.
The requred parts:
- 1 x female serial port connector
- 1 x max 232
- 4 x 1uF capacitor
- 1 x 10uF capacitor
- Soldering iron, wires, breadboard etc.
Â
Â
Schematic













Monday, February 26th 2007 at 9:48 pm
[...] SoDoItYourself Back to SoDoItYourself.com MAX232 Serial level converter » [...]
Tuesday, February 27th 2007 at 6:54 am
[...] Refernce web: http://sodoityourself.com/max232-serial-level-converter/Â [...]
Thursday, March 15th 2007 at 1:16 am
what to the symbols represent like the one that looks like + l l any refrence site i can go to to see what these symbols in the schematic mean or can tou take a picture of the actual finished product? Thanks
Thursday, March 15th 2007 at 9:59 pm
@Greg
The || symbols are capacitors. The + marks the plus side of the capacitors if they are polarized.
Tuesday, March 20th 2007 at 9:57 pm
The schematic shown is exactly what needs to be done and other components (resistors, etc.) are not needed? Also, how can I get a regulated +5v supply for the Vcc? Because I am soldering the circuitry to the DB9 Female solder-cup so I can connect it to my computer and want to make sure it doesn’t harm anything.
This was very helpful in my current project, thanks!
Wednesday, April 4th 2007 at 6:11 am
The +5v supply can be generated by an outside source, but is usually supplied by the serial device you are connecting to.
Thursday, April 5th 2007 at 6:28 pm
Im making serial 16X2 LCD for my PC. So now I found what i want. Thank you very much.
Thursday, April 19th 2007 at 9:40 pm
It is quit simple circuit and I am already built it , OK. Is it possible to inform me about more details regarding the procedure of programming a new blank pic 16f84 ? Is Mplab software suitable to work with it ? what kind of configuration that i have to select for this programmer? and the last question what about the voltage 14V which should be provided to pin 4 in many other programmers?
Thank you very much
Thursday, April 26th 2007 at 4:27 pm
This was just what i needed to know. Thanks for the support
Wednesday, May 9th 2007 at 10:10 am
Waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah
Tuesday, May 15th 2007 at 11:25 am
In absence of power supply, Can input +15 to -15 volt signal is affected on max232 driver.
and can we receive the data from PC without using capacitor with IC max232 for one side communication
I am not found the internal logical diagram of driver/receiver can you provide me
Thanks
Thursday, May 24th 2007 at 1:18 pm
To A.I.HAMAD,
To program a PIC you’ll either need an In-circuit-debugger (ICD) or a Microchip programmer (like the one in this image http://www.mp.ttu.ee/risto/rc/electronics/images/pctorc/07.jpg). MPLAB is fine. If you use programmer then you’ll need to take the PIC out after each program and insert it back into you circuit (time consuming if you are new to this stuff). If you use an ICD then you connect to it while still in the circuit through a socket you fix into your circuit. I don’t know what country you are writing from but in the UK these things can be bought from RS or Farnell. http://www.sparkfun.com/ for more PIC tips.
Ad
Sunday, July 22nd 2007 at 9:53 pm
good excellent
Thursday, August 23rd 2007 at 4:29 pm
Can somebody explain what the 10uF capacitor is for. Is it nessesary? Looking at the charts Maxim supply I can’t see it.
Friday, August 24th 2007 at 9:39 pm
[...] MAX232 Serial level converter is a wide used chip for converting RS232 logic levels to TTL logic levels that can [...]
Tuesday, September 4th 2007 at 6:55 pm
you can make it much more simpler.. by removing the 10uF capacitor from that circuit
Tuesday, September 4th 2007 at 6:57 pm
@Loffe:
that 10uF is a bypass capacitor… usually it should be small like 100nF.. 10uF is a big value
Monday, October 22nd 2007 at 5:59 am
[...] The XBEE uses 9600 8N1 by default. To use the XBEE with the picaxe it first must be programmed to use a slower speed. Fortunately there is a utility build into the picaxe programming envirnoment that will setup the XBEE for you. A programming board must be build. This consists of a a MAX3232 (Or since I didn’t have one a MAX232 with voltage divider between the outputs.)  The RX and TX are wired appropriately. Here is a diagram from doityourself.com: [...]
Wednesday, November 21st 2007 at 6:12 am
how MAX232 is interfaced with C8051F020 microcontroller??
Saturday, December 15th 2007 at 5:34 am
What is the need of capacitors in the circuit..what is their work over there …
how can we decide on the value of capacitors??
Wednesday, January 30th 2008 at 4:14 pm
datas required for project.
Tuesday, February 5th 2008 at 11:53 pm
What program did you use to make the schematic, it just looks great…
Monday, February 11th 2008 at 8:58 pm
For the guys mainly in UK (or worldwide) you can buy a very low cost MAX232 based RS232 to TTL converter at http://www.tronisoft.com/cat_rs232ioboard.php
Designed for electronics hobbyists and for professional use. 5V PSU is built in because
of user comments on this site!
Happy piccing or use with Atmel devices too!
Wednesday, February 13th 2008 at 7:38 pm
This circuit works great to talk to my PC, but I have a piece of equipment (video matrix switch) that it won’t work with. My pc, however, can talk with the switch just fine.
I wound up using the circuit into serial port b, and then I have serial port a connected to my video switch. I then issued a “copy com2 com1″ command from dos so the output of com2 is routed to com1. Works great, but not very sexy.
I switch pins 2,3 etc. but nothing I have tried will allow the circuit to drive the video switch. Could there be something about this equipment that requires more current than the max232 can deliver? Any suggestions?
Saturday, February 16th 2008 at 8:49 pm
Hi Trey,
I think it is more likely that the handshaking lines are not being used. Probably only need the additional RTS/CTS lines.
Look at the MAX232CPE datasheet and you will find that this device can support RTS/CTS too. So use them to see.
BTW - we now do a popular kit version but with the handshaking lines RTS/CTS available.
Sunday, February 17th 2008 at 2:47 am
I appreciate your comments. I am talking to the device using only 2,3 and 5 from the PC, so I discounted handshaking. Also, the documentation for the device says only 2,3 and 5 are used with no flow control. It appears to be some sort of current problem. I saw on a website somewhere that the impedence of some devices can cause an issue. I thought about building one of the circuits I saw with transistors (that borrow 12v from the dormant receive line). Any luck with this or other suggestions?
Tuesday, February 19th 2008 at 11:17 am
Hi Trey,
Other ICs/vendors do slightly different versions e.g. the ADM232 claims +/-9 output swing at RS232.
Usually most claim say 7.8v to 8V into 3K load with 5V supply.
If its is just a little low on the voltage for the load then you could try that.
Noz,
Tronisoft
USB / RS232 / IO Modules
Thursday, February 28th 2008 at 9:15 am
What is the function of all the capacitors present here
Saturday, March 1st 2008 at 4:13 am
MAX232A versions from Maxim, such as MAX232ACPE, and similar parts available from others require only 0.1uF capacitors for the charge pump and inverter. They may cost a little more, but the cheaper capacitors usually make up for it.
Wednesday, March 19th 2008 at 7:21 am
Why are capacitors being used in the circuit
Tuesday, April 1st 2008 at 5:34 pm
i have bit prob with this circuit..when im use this circuit and test it with the hyper terminal program..it doesn’t show anything..im connect this circuit with the RFID reader. when the reader is activate there is nothing appeared in hyper terminal..some one please help me with this situation..
Saturday, June 14th 2008 at 10:30 am
I came cross a similar schema, but it was lacking the 10µF capacitor. What’s the purpose of the 10µF cap? What version should I choose?
Friday, July 4th 2008 at 10:19 am
The 10uF is for the charge pump of the MAX232 minimum value based on the datasheet is 1uF for MAX232a its 100nF. 10uF for longer distance (long cables). my two cents.
Tuesday, July 8th 2008 at 2:12 pm
How To Build a Fireplace…
The work continues on the house. This is the first house project we’ ve done without us living in the place or doing the work ourselves. Blessed relief. If you’ ve ever lived through a major remodel with tiny feet pattering about, you know what I m…
Friday, July 18th 2008 at 3:07 am
how can I have the output of Tx to produce just 3.3V when it is at logic 1 ??
Is it the Vcc of the max232 just supply 3.3v??
Wednesday, August 13th 2008 at 2:33 pm
i only have 10uF capacitors available. Will it be OK to use 10uF capacitors for all the circuit or will it cause problems?
@232: i think you may have to use the 3232 chip which operates at LVTTL levels of 3.3v-5.0v. But if there is a way that anyone knows to get 3.3v from this max 232 chip I would like to know too!!!
Monday, September 1st 2008 at 10:35 pm
Hello -
I left a message in Feb concerning ttl to rs232 conversion. You were generous with suggestions, but unfortunately the problem still exists. While I have worked around it for several months, I now need a hardware solution.
Here is the setup:
A microcontroller circuit needs to control a video switch via rs232. I cannot get the microcontroller to interface directly with the switch either with hand made level converters (using max232 or those I purchased premade).
I can, however, make it work if I interface the microcontroller to a PC com1, and then the PC com2 to the switch. A simple ‘copy com1 com2′ with timeout disabled (19200,8,n,1) allows the microcontroller to control the switch indirectly. There are only three wires used both from the controller to the PC and to the switch - tx,rx,gnd. There is no handshaking software or hardware enabled on any of the devices. The message I need to transmit is only a single character, and I only transmit from the controller to the switch (not bidirectionally).
I assume this must be to voltage levels required by the switch?
1) how can I measure the voltages present from max232? I have a scope, so can I just connect in parallel with TX and gnd and monitor the voltage levels?
2) Do you have a suggestion on another cct that will provide a greater voltage swing?
3) other?
Any help would be appreciated!
Trey
Monday, September 1st 2008 at 11:13 pm
As a follow up to the above, I did hookup my scope in parallel and I am seeing a 7v swing from 0 (or +/- 7V) showing on the scope relative to gnd. This is with a purchased level converter from Solarbotics, Ltd.
Saturday, October 25th 2008 at 1:22 pm
Reply to “Comment by 232:” Friday, July 18th 2008 at 3:07 am
how can I have the output of Tx to produce just 3.3V when it is at logic 1 ??
Is it the Vcc of the max232 just supply 3.3v??
_____________________________________________
You should really use something like a MX3232 IC based circuit.
This is available here (shamless plug):
http://www.tronisoft.com/4205.php
Hope it helps!
Noz,
Tronisoft
USB / RS232 / IO Modules
Saturday, October 25th 2008 at 3:57 pm
plz any one tell me from where i can get the detail internal diagram of max232 ic….i also need to know what is the requirment of capacitor….
Tuesday, November 11th 2008 at 7:55 pm
hi,i m working with serial card but my card seems to give me dummy values.is there any thing wrong with my max232.i used 22mic f capacitor.also i want to know abt voltage value of capacitor.urgent.
Wednesday, November 19th 2008 at 1:49 am
I am about to build the circuit and note the .1 micofarad cap off pin 6 has the + to the ground line- is this correct?
Thursday, November 27th 2008 at 4:44 am
Can someone please e-mail me with a detailed pic of this all set up on a breadboardboard so I can replicate. I’ve been trying for months to get this to work off and on with no luck. I am Trying to debrick my router. I have a small white plastic breadboard. 1 DB9 and 6 1uf cylindrical caps and 6 .1uf ceramic caps but don’t have the 10uf cap but have a bunch of other sizes. Also have the max3232cpe can’t figure out how to work this. atesfaye@yahoo.com I thank you in advance!