Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] pin level (3.3V-5V) and rs 232

Status
Not open for further replies.

dxtr

Member level 3
Member level 3
Joined
Apr 27, 2012
Messages
66
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,699
Hey everyone
i wish you could help me with this problem
i want to use the µdrive-uSD-G1 with PIC 16F876A using Rs232

**broken link removed**

the problem is that the µdrive Tx-Rx levels are 0-3.3V , the pic Tx-Rx levels are 0-5V , how to manage that ?
 

Hi,

There are a few chips around that will solve your problem, though they are somewhat limited in stockists.
https://www.ti.com/lit/ds/symlink/txb0106.pdf

If you see the Microchip Tips and Tricks pdf it shows many other ways to convert the voltages

Another way is to use a Pic chip that will run at 3v3 like the 16LF876a, though that depends on what other devices are connected that may be 5v devices
 
  • Like
Reactions: dxtr

    dxtr

    Points: 2
    Helpful Answer Positive Rating
I don't know anything about the udrive, but the PIC should do fine with 3.3V logic levels on the inputs. However, can the udrive accept 5v inputs? if not, you could just use a voltage divider on that line, you don't need a chip.
 
  • Like
Reactions: dxtr

    dxtr

    Points: 2
    Helpful Answer Positive Rating
thanks wp100
I don't know anything about the udrive, but the PIC should do fine with 3.3V logic levels on the inputs. However, can the udrive accept 5v inputs? if not, you could just use a voltage divider on that line, you don't need a chip.
barry : thanks , i read in the datasheet of udrive that if the host send 5v to Rx of the module , then you must put a 220 ohms resistor inline , so if the pic REALLY have no problem with 3.3 logic level then problem solved :)
 

Just put voltage divider from 5v to 3V3 side. In oppisite direction 3V3 can be considered as high logic level (see TTL voltage levels). I used that for xBee and works fine. For more protction of 3V3 inputs you can also pud zener 3V6 to asure that line never goes on 5V.
 
  • Like
Reactions: dxtr

    dxtr

    Points: 2
    Helpful Answer Positive Rating
Just put voltage divider from 5v to 3V3 side. In oppisite direction 3V3 can be considered as high logic level (see TTL voltage levels). I used that for xBee and works fine. For more protction of 3V3 inputs you can also pud zener 3V6 to asure that line never goes on 5V.
Thank you my friend :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top