2
\$\begingroup\$

If I have a device specified for 3.3V operation and I connect a 5V level TTL signal to it ? Will it's UART ports be damaged or not ?

I have a WiFi module and I want to know if its UART ports will have been damaged by applying 5 Volt signal levels during an experiment or if there is still hope that it has not been damaged ?


This WiFi unit

This may be the manual

\$\endgroup\$
1
  • 1
    \$\begingroup\$ From the link it is not clear what the IC is. In general, if you present overvoltages on microcontroller pins, it's a bad idea. There may be a diode from the pin to VDD which is normally reverse biased, but when the input rises above VDD, it starts to conduct. You really need to have the datasheets for the chips on that module to get a definite answer. \$\endgroup\$
    – Kaz
    Commented Apr 2, 2013 at 22:55

3 Answers 3

3
\$\begingroup\$

While there is no yes/no answer to whether your particular device has a damaged UART port many devices that are specified for 3.3V operation can have their I/O lines damaged by applying 5V logic levels. Best practice is to check the datasheet and confirm the particular device is 5V tolerant and if not mentioned in the specifications either assume it's not and use 3.3V logic or contact the manufacturer for clarification.

\$\endgroup\$
6
  • \$\begingroup\$ The actual question is, What if my device does not support 5v tolerant ? Will it be damaged with some minor test in 5v ? \$\endgroup\$ Commented Apr 2, 2013 at 11:16
  • 2
    \$\begingroup\$ Yes it could be, it will depend on the device but failure from within milliseconds to days or anywhere in between can be possible. \$\endgroup\$
    – PeterJ
    Commented Apr 2, 2013 at 11:27
  • \$\begingroup\$ Another odd behavior ... if I connect RX to RX and TX to TX, and send any character with my terminal program, my module responses with double dots ".." ! for example if I send +++ it gives me "......" if I send "AT+WSCAN" response with ".ª.Q....." ... why its functioning like this ? \$\endgroup\$ Commented Apr 2, 2013 at 11:42
  • \$\begingroup\$ @Michel Kogan. This is a different issue: you should post that as a separate question if you need that answered. \$\endgroup\$ Commented Apr 2, 2013 at 15:53
  • \$\begingroup\$ @MichelKogan you might be connecting the pins backwards. The Wifi board's RX is for receiving. Same with whatever you are connecting it to. 90% of the time, one device's TX connects to the other's RX. TX/RX are based on the direction of the device. My computer's TX sends data out. My microcontroller's RX receives data. Connecting them wrong will also cause issues, aside from connecting 5v to a 3.3v uart. \$\endgroup\$
    – Passerby
    Commented Apr 2, 2013 at 18:36
1
\$\begingroup\$

As mentioned by other, you have to check the datasheet to see if the Rx pin is 5V tolerant. If not, there are many level shifter ICs you can use to shift 5v to 3.3 and vise versa.

\$\endgroup\$
1
\$\begingroup\$

Whenever you are stuck with any of these questions, it is best to refer to the datasheet for your specific module. I have worked with modules which run at 3.3(V) but can tolerate 5(V) inputs to the serial port. That being said, this is very device specific and really depends on if the manufacturer has added the ability to tolerate 5(V) line.

As for your UART issue where "...." being seen, you should check whether this is happening if you have none of the TX and RX connected. If you still get that without any serial connection, it might just be something the WiFi module is sending by default (possible bad WiFi module firmware or maybe malfunction). Like mentioned, however, that would be the topic of another question, which you should post if you want the proper answer to that.

A solution to your issue is to just you a logic level shifter. Either that or you can choose to run everything at 3.3(V) if you don't need the higher 5(V) rail which usually can be done.

Hope that helps. Happy Engineering!!!

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.