MAX3232 each time only after power on, then connect the serial line normal--protection resistor

Source: Internet
Author: User

Reprint: Http://m.newsmth.net/article/Circuit/298517?p=1

Original question:

Made a circuit board, the results found that to the Development Board power, and then open the serial terminal HyperTerminal, serial communication can be successful.
But the other board doesn't have the problem.
What is the general cause of this?

You encounter problems:

Just welded board, found that the serial port has problems, the result of the serial port each time only in the power supply after the power-up after the connection to the serial cable

To communicate properly

Summary of reasons:

Lack of protective resistors,

Workaround: Unplug the serial cable every time the power off

The problem mentioned below, and the above link in the problem (hot plug to be able to communicate), is actually the same problem,
The probable cause is
1. The value of those small capacitors that generate voltage on the 232 transceiver chip is inconsistent with the data sheet.
2. There is a missing series protection resistor between the 232 transceiver chip and the 232 socket, or the value of the protection resistor is too small.
3. The original 232 transceiver chip may have partially failed

If both 1 and 2 have been done, the series protection between the RXD input pin and socket RXD of the 232 transceiver chip
resistors, such as 1 K or 10K, should be available. If not, let's change a 232 chip.

Say a few more reasons (previously encountered the problem so studied):

In the non-communication, the PC serial port TXD pin will output the voltage around -5v, so on the Development Board of 232
The rxd corresponding to the input pin (r1in or r2in) of the generator chip maintains the voltage around -5v. When the development board loses power
, the 232 transceiver chip has no voltage on the power pin, the v+/v-pin has no voltage, except the RXD input pin
(r1in or r2in) to maintain the level of the -5v around, do not say more to understand what this means. If
The habit of every time the Development Board power down but let the serial port is still connected with the PC, which means that the 232 transceiver chip
Long-term withstand the RXD input pin -5v but at the same time let the power pin and v+/v-to zero level, especially when the PC's TXD
Output to maintain this more than -5v or even more than -6v, over time, the chip will gradually become part of the failure or
All failed, so the communication was unsuccessful. So changing a chip can often solve this problem.

Each time you first open the serial program without communication, the voltage -5v or below is added to the TXD pin, if
At this time the Development Board power off but then the serial port, the equivalent of the initial state is to let 232 transceiver chip in the above
Abnormal operating conditions, and then to the Development Board power, there may be unsuccessful communication situation.

This time when the serial port is plugged in, equivalent to let the 232 transceiver chip RXD input pin to remove the -5v voltage,
While maintaining the voltage of its power pin, v+, V-pin, this is the 232 chip back to normal operating conditions. If
232 transceiver chip failure degree is not deep (not deep "hold"), this time the communication may return to normal.

And if you restart the serial port program, the initialization process will change the PC serial TXD output voltage, let 232 transceiver
The RXD pin of the device chip has a process of recovering the 0 level, which is plugged into a serial port on the RXD pin to temporarily
Removing the -5v level is an effect.

In addition, the RXD series resistor is changed to the role of the 232 transceiver chip in the power supply pin off
, the input voltage from the Rxd input pins (r1in and r2in) is limited, so damage to the chip is not
So large, or the degree of entry into the fault is not so deep, when the Development Board power (that is, 232 transceiver
When the chip is on, it is easier to return to normal state.

The above analysis can also be verified by the experimental method. When the development Board is powered off but the serial port is still on the PC, the test
Volume 232 transceiver chip corresponds to the RXD output to the MCU pin, you will find that the voltage of the pin is significant -0.x
Volts (is limited by the MCU's pin so it won't be very low, but there's always a-0.3 or -0.5v). When giving the development Board
When the above fault occurs after power on, measure the 232 transceiver chip corresponding to the RXD output to the MCU pin
Level, you will find that the pin has been maintained at 0 levels instead of the desired +3.3v/5v (depending on the 232 transceiver
Chip's power supply size), this is the RXD output pin seems to be "held dead". And once hot-swappable or re-initialized
PC serial port, you will see that the level of the pin back to the +3.3/5v, can communicate normally.

So, two recommendations:

1. When the Development Board power off, should also unplug the serial cable, or 232 transceiver chip may be in the long-term abnormal
Level conditions.

2. Enter the signal from the serial socket, to the 232 transceiver chip pins should be connected to a large series of resistors, and
Not a small resistor of 5.1 or 22 ohms, similar to the TXD signal. I am more accustomed to using 1 K or 470 euro.

Of course, this series resistance can not be too large, but also consider the serial line of the pressure drop (such as the line is thin or long).

MAX3232 each time only after power on, then connect the serial line normal--protection resistor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.