r/beneater • • Feb 28 '26

Help Needed Problems with max232

hello, I have returned with yet another problem! yay...

so, the max232 seems not to be working correctly. I believe everything is hooked up correctly, but the uart is not getting anything from it.

I can read the uart registers fine, I tested that by printing them to the screen.

RXD though idles at around 3.4 volts when nothing is being sent across the serial either way.

hooking up the in/out to the uart does nothing when I believe it should, but hooking up rxd to txd does return what I am trying (I mean, it's the same exact signal but just did it to check.)

I believe the chip is not working so I ordered some replacements, but I wanted some feedback if y'all can see anything wrong with it.

27 Upvotes

12 comments sorted by

4

u/Resistor1 Feb 28 '26

I cannot remember the specifics of the combinations but there are 'flavours' of the MAX232 that need an order of magnitude different value capacitors. So if 1uF doesn't work, then 10uF might. The spec sheets for the different variants of MAX232 do have reference circuits and values. I also had issues with aliexpress sourced ICs that got hot but worked sporadically. Eventually used Mouser and got some trustworthy variants matched with appropriate capacitors.

2

u/TKDturtle239 Feb 28 '26

From the page it said it was a drop in replacement for the original. They haven't arrived yet, still got another week. This one is from Ben eaters kit. I believe also the voltage should rest negative, not positive too.

3

u/DanTheDane Feb 28 '26

Mine didn’t work either, snd got extremely hot. After a tip from another reddit post, it turned out that pin 2 should use a polarised cap and go to +5v, not ground. Now it’s working perfect. This was the max232 supplied in the serial kit by Ben, so very surprised it was different from the schematics and videos.

Edit: Here’s the post describing it: https://www.reddit.com/r/beneater/s/4lmdva5q07

3

u/TKDturtle239 Feb 28 '26

Yes! That was the problem! Thank you so much!

2

u/DanTheDane Feb 28 '26

Happy to help, great to hear it worked.

2

u/andrew1718 Feb 28 '26

Had the same issue with the same fix. But I used a non-polar cap.

1

u/Dissy614 Feb 28 '26

Anything over +3v is still a valid zero. The transitions to below -3v when sending a one happen pretty fast. How are you attempting to measure it? A multimeter might not sample fast enough to actually show the -3v

Of course the problem might still be on the TTL side or with the chip. It's in the correct idle state so isn't completely dead, but you should be able to send data and see the tx go negative

Using larger caps may get it closer to +5/-5, but if you're using a USB serial port on the other end it should be fine either way. Only an old school rs232 port based on +12/-12 is likely to have problems.

1

u/TKDturtle239 Feb 28 '26

The thing is, shouldn't it rest at a negative voltage? Iirc it rests at a negative voltage, so +3v wouldn't be correct for this. On top of that, if the chip was working correctly, then connecting r1 out to t1 in should send the same data back to the computer, which it does not.

1

u/Dissy614 Feb 28 '26

In normal operation yes. But the max232 output will only be negative when the matching TTL input is positive. When the uart is disconnected from the max232, the max232 output will be positive.

Perhaps I mixed up the order you were testing things. The naming is getting confusing as well.

With the max232 disconnected, connecting the uarts TX and RX should echo back whatever you send out.

When the max232 is connected, uart tx connects to max t1-in. When t1-in is low(0v) the max t1-out should read positive (above +3v). When t1-in is high (5v) the max t1-out should read negative (below -3v)

You can also isolate the max232 and jumper its t1-in straight to a power rail while measuring t1-out. It should just output a solid negative voltage that way.

Additionally, you can try the same tests but using the t2-in with t2-out. The max232 has two separate transmitter and receivers. There's a chance something only happened to the #1 pair and the #2 pair may be working.

It's more complex to test the rx side, as you'd need to give it a negative voltage to see +5v on the ttl side of the chip.

1

u/TKDturtle239 Feb 28 '26

So, I solved it now, but the uart chip is still acting weird. Only getting status registers 0x10 and 0x50.

Those correspond to 0b00010000 and 0b01010000 respectively.

Bit 4 is transmitter data register empty, and bit 6 is data set ready. I am not getting any data.

1

u/Careful_Eagle6566 Feb 28 '26

Honestly, I think that’s the worst part of Ben’s design. Setting up the rs232 voltages just to use an active usb converter cable is very strange. You can also just get like a $5 ftdi friend or something that does native usb from the 5v uart signals directly.

1

u/TheNonsenseBook Feb 28 '26

I was working on something over a year ago so the details are fuzzy (I was decoding audio with some other circuits and turning into a serial stream) and I was having a hard time with the UART until I ran a ground directly from my power source ground to the ground of the UART. It wasn’t getting a good enough ground connection by going from board to board!