Pages: [1]   Go Down
Author Topic: MAX232 RS232 Problems  (Read 2546 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am having trouble with converting ttl to rs232 I am using the MAX232 chip and schematic found in Making Things Talk:

http://books.google.ca/books?id=K0nLbhWrTukC&pg=PA54&lpg=PA54&dq=max232+making+things+talk&source=web&ots=tPRlyD7MPP&sig=j0qGQJf3M9N-LnKgK3e32Pd5mH0&hl=en&sa=X&oi=book_result&resnum=1&ct=result

I have wired up one of them and tested the send function by jumping the ttl side send and receive sides together. What I am finding is if I send the ascii 't' about 10 times i get 't' back about 2 times. The rest of the time I am getting random characters like : or }. Has anyone had any experience with this circuit. I read somewhere that Capacitors don't have a polarity but in most diagrams it shows that they do. Should I redo it? Also, I found this diagram which is quite different : http://www.forum-auto.com/uploads/200504/piffo77_1112975528_piffo77_max232.gif

Any Suggestions? Is one diagram better than the other?

Thanks,

Shaun
Logged

United States (Texas)
Offline Offline
God Member
*****
Karma: 2
Posts: 525
Arduino socks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

most capacitors have polarity, look for a black stripe on one side. if its a small ceramic capacitor (flat circle) then generally it doesn't matter.
Logged

London
Offline Offline
Faraday Member
**
Karma: 8
Posts: 6240
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The max232 uses 0.1uf capacitors which are typically ceramic types and don't have polarity. The second diagram uses polarized 1uf electrolytic parts but these are much larger than necessary.


The first diagram is the one normally used.
Logged

Denver
Offline Offline
God Member
*****
Karma: 19
Posts: 778
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

tsugua,

It might be that the circuit you are using is more suited to something like the MAX3232. (I saw that it said you can use the MAX232  :-?)

If I'm not mistaken the MAX232 is ment to use larger caps - like 1uF instead of the .1uF that you are using. The second diagram looks more like it.

In any case, the caps are non polarized - especially when they are that small.

You might want to Google some more, or look at the datasheet for your chip on the Maxim site.
Logged

"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

they are ceramic and they are rounded on one side and flat on the other they are the 104.

Should I worry about those?
Logged

London
Offline Offline
Faraday Member
**
Karma: 8
Posts: 6240
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ceramic capacitors are fine with the max232 and you don't need worry about the polarity. Try a test where you send data to an external computer. Your random characters could be due to reading and displaying data when nothing is in the buffer (did you remember to use Serial.available?)
Logged

Denver
Offline Offline
God Member
*****
Karma: 19
Posts: 778
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your caps are .1uf and you don't need to worry about polarity.

However, unless you are using a MAX232A, the caps should be 1uF.
See this link - page 17 (table)
http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf
Logged

"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The MAX232 is such a great part that now everybody and their dog makes their own version of it.

find the specific manufacturer and part number (including things like that A suffix that BroHogan mentioned), then get a datasheet for that part and use what it says.

If you're not sure, I suspect the 10uF caps would be more likely to work for all variants of the MAX232, whereas the .1uF caps wouldn't work for a device that expects the 10uF.

Oh, and the chip you see in the Making Things Talk reference is a MAX3323, not a 232, hence different pins and caps.

-j
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Everyone for your replies. I do have the circuit wired incorrectly and I have the .1u caps. The chip is a MAX232 it is not the A.

On Page 17 of the DataSheet:
http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf
it says that I need the 1uF capacitor but on page one the data sheet under Nominal cap value it lists both the 1uF and then in brackets the .1uF. Does this mean I can use both? It doesn't make mention of the .1uF elsewhere.

Thanks,
Logged

Denver
Offline Offline
God Member
*****
Karma: 19
Posts: 778
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Since you say you had it wired incorrectly, try it. If it works with the .1uF caps, that's good!

I've heard several times that you do need larger caps for the charge pump on the MAX232. One place was here:
http://www.sparkfun.com/commerce/product_info.php?products_id=316
"The MAX3232 can use very small 0.1uF ceramic capacitors - no more 10uF monsters!" (but that's a little confusing too!)

(Looking at the datasheet again, I think the reference to .1uF is for the MAX202 with a max speed is 64kbps.)
« Last Edit: September 21, 2008, 12:47:20 pm by BroHogan » Logged

"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have some ma232EPE

can i connect with only 0.1uF capacitors?

or what do i need to buy

i have seen to many schematics

wich is corect?

thanks a lot
Logged

0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I guess you didn't actually read this thread before you posted?

Quote
find the specific manufacturer and part number (including things like that A suffix that BroHogan mentioned), then get a datasheet for that part and use what it says.

-j
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 112
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have always used 0.1 uF "104" ceramic caps for MAX3222 or Max233, although I got used to using Max233A to not need to use them.

But I have a question, I see you are doing a loop back test by shorting the TTL pins, but how are you looking at the characters? Are you using the Arduino to display the data on a LCD panel? or are you looking at it on a terminal program like Hyperterminal?

You should not need more than the datasheet from Maxim there to wire it up. Maybe instead of a loop back you might want to use 2 different serial ports for your test, or another pc using Hyperterminal

Logged

No trees were harmed by the transmission of this message. However a few million electrons were temporarily inconvenienced.

0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the max232 from MAXIM?
Logged

Pages: [1]   Go Up
Jump to: