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

View all comments

Show parent comment

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.