I am using a MAX232 to convert RS232 level to UART TTL Level. It is between a Sensor and a Arduino MEGA2560. I have already tried 56K and 120K baud-rates...
9.3.2 RS232 Driver
Two drivers interface standard logic level to RS232 levels. Internal pull up resistors on TIN inputs ensures a high
input when the line is high impedance.
9.3.3 RS232 Receiver
Two receivers interface RS232 levels to standard logic levels. An open input will result in a high output on ROUT.
Is this happening with any kind of modules connected there ? I mean, did you notice that failure occurring just at the same external interconnection, or any others ?
What exactly is this Sensor? Please be specific.
Can you provide the datasheet or user manual for this Sensor?
A schematic of the connections between the Arduino Mega2560, MAX232 and the Sensor would also be helpful.
BigDog
3. Supply voltage is a clean, non floating, derived by an LM7805 adequately bypassed
6. This even happens when the connection to the sensor is disconnected
14. I am using a Dorji RF transmitter very near to this MAX232
Hi,
Datasheet says:
Please show us the complete datasheet including all connections and sensir and supply and so on.
And the PCB layout...or at least a photo of your circuit.
Klaus
I don't have the PCB layout ready yet. I have only tested it on the breadboard so far which works correctly most of the times.ُ
Does the Vcc bus keeps the same voltage during the heating of the MAX232 ?
Is your primary power source adequately sized to the overall power consumption, board+shields ?
Does the unconnected pins of the IC are unconnected to any routed track ?
I'm sorry to say that fortunatelly this could explain that intermittent fail. The exposed wiring on this assembly acts as excellent antennas, particularly if exposed to an RF transmitter so close as you mentioned
I am not sure if I am getting what you are asking me. All of the unconnected pins of the IC are absolutely unconnected to anything. I am sure. I even clipped them on one of the ICs
Millions of MAX232 circuits are running without problems.but I must say that I am reluctant to design the PCB without all the measures that I can take right now. Like this guy here, I want to take all the measures to make this circuit bullet proof.... I am a little anxious, because I have seen some people with overheating max232/max3232 on the PCB! There are abundant threads all over the internet...
Is it possible for you to move the transmitter a few feet away and see if problem goes away.
The normal cause of the Max232 heating up is due to one or more of its outputs being connected to another output. You say that your circuit is working, but do you use all of the outputs when you test it?
It cou;d be due to latch up, although I have not experienced it with the Max232. Ensure the inputs to the Max232 are disconnected when powering up.
"In my case I think I have found the scenario that causes the latch-up - every time the analog side RS232 pins of the chip are connected to a powered serial port (e.g. connecting a board with the MAX232 to a running PC's serial port) without power applied to it's power pins (i.e. the board not powered), once I apply +5V to the chip it immediately enters the latch-up condition. I have narrowed this to the TxD input - because it's driven with a negative voltage (negative idle voltage on RS232 line), the combination of rising VCC and negative input on TxD causes in my opinion the latch-up condition. This seems like a bug of these chips related to the silicon implementation."
At least this way I am not required to order another PCB!
This seems like a bug of these chips related to the silicon implementation
Hi,
What a surprise! You have a PCB?
Can you show us?
What exact manufacturer and device number is the MAX232?
Klaus
This is a interesting thread about your latch-up problem. I like it because the person with the problem has a well laid out PCB and SMD components.
https://e2e.ti.com/support/interface/etc_interface/f/392/t/233847
A few ideas are talked about and then in the last post someone says he can repeat the problem every time.
These pins connected to the long wirings at the serial cable could exaplain that; acting such as antennas to get all sort of EMI. Perhaps adding external pull-up/down resistors as mentioned before could avoid or minimize the ocurence of this problem.
Is this happening with MAX232 chips from different manufacturers ?
This means: Don´t let them floating! This applies to PINs 10 and 11.The transmitter inputs do not have pullup resistors.Connect unused inputs to GND or VCC.
Hi,
from Maxim MAX3232 datasheet:
This means: Don´t let them floating! This applies to PINs 10 and 11.
A zener across VCC and GND could help to avoid overvoltage and undervoltage, especially with low value VCC capacitors.
Klaus
- - - Updated - - -
ADDED:
Pullup value:
Datasheet says:
* Input leakage current max. = 1uA
* Input logic threshold igh = 2.4V (@5V VCC)
This means the pullup is between VCC and T_IN.
When T_in = 2.4V, then U_Rpullup = 2.6V
R = U / I = 2.6V / 1uA = 2.6MOhm.
But this is the minimum current = max pullup resistor.. without any other connection to T_IN (like a wire or a connector)
My recommendation: use 100k.
Klaus
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?