DIY编程器网

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 8977|回复: 9
打印 上一主题 下一主题

[电路图] 3.3V-5V电平双向转换电路收集

[复制链接]
跳转到指定楼层
楼主
发表于 2014-11-27 11:21:39 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
AN97055.pdf (75.3 KB, 下载次数: 4)



Bi-Directional MOSFET Voltage Level Converter 3.3V to 5V

When connecting 3.3V devices and 5V devices voltage level conversion is required. The following circuit will allow this to be done bi-directionally



Low Side Control

When the low side (3.3V) device transmits a '1' (3.3V), the MOSFET is tied high (off), and the high side sees 5V through the R2 pull-up resistor. When the low side transmits a '0' (0V), the MOSFET source pin is grounded and the MOSFET is switched on and the high side is pulled down to 0V.

High Side Control

When the high side transmits a '0' (0V) the MOSFET substrate diode conducts pulling the lowside down to approx 0.7V,
this is also low enough to turn the MOSFET on, further pulling the low side down.
When the high side transmits a '1' (5V) the MOSFET source pin is pulled up to 3.3V and the MOSFET is OFF.

Note This works with I2C and other open collector type gates

No 3.3V Supply?



If you dont have access to the 3.3V supply (maybe the 3.3V voltage regulator is on a breakout board)
you can simply tie the gate to 3.3V via a simple voltage divider







在电平转换器的操作中要考虑下面的三种状态:

1 没有器件下拉总线线路。

“低电压”部分的总线线路通过上拉电阻Rp 上拉至3.3V。
MOS-FET 管的门极和源极都是3.3V, 所以它的VGS 低于阀值电压,MOS-FET 管不导通。
这就允许“高电压”部分的总线线路通过它的上拉电阻Rp 拉到5V。
此时两部分的总线线路都是高电平,只是电压电平不同。

2 一个3.3V 器件下拉总线线路到低电平。

MOS-FET 管的源极也变成低电平,而门极是3.3V。
VGS上升高于阀值,MOS-FET 管开始导通。
然后“高电压”部分的总线线路通过导通的MOS-FET管被3.3V 器件下拉到低电平。
此时,两部分的总线线路都是低电平,而且电压电平相同。

3 一个5V 的器件下拉总线线路到低电平。

MOS-FET 管的漏极基底二极管“低电压”部分被下拉直到VGS 超过阀值,MOS-FET 管开始导通。
“低电压”部分的总线线路通过导通的MOS-FET 管被5V 的器件进一步下拉到低电平。
此时,两部分的总线线路都是低电平,而且电压电平相同。

这三种状态显示了逻辑电平在总线系统的两个方向上传输,与驱动的部分无关。

状态1 执行了电平转换功能。状态2 和3 按照I2C 总线规范的要求在两部分的总线线路之间实现“线与”的功能。

除了3.3V VDD1 和5V VDD2 的电源电压外,还可以是例如:2.5V VDD1 和12V VDD2。

在正常操作中,VDD2必须等于或高于VDD1(在开关电源时允许VDD2 低于VDD1)。





2.5V 也可以和5V双向转换






Since the outer resistors and the drawing are bus resistors which hold the bus level at HIGH level when no device is pulling it done to LOW, this is state one.



So if both lines, left and right are not low, no current is allowed to flow from both transistor bases.
So no amplified current is flowing.

This is state 1.

At state 2 the left 3.3V-side is pulled to LOW.
Following this the lower transistor will have a current flowing from base to emitter.
According to the basics of the transistor there is current allowed to flow between collector and emitter and the right side receives a LOW as well.

State 3 is described by polling LOW on the right side. T
his happens like state 2 but instead the upper transistor is made conductive.




Two transistor circuit replaces IC
iic.pdf (177.3 KB, 下载次数: 0)





The outer most resistors are pull-up resistors for the I2C bus.

A device that pulls a line down, has to pull down the current through both resistors (on the 3.3V side, and on the 5V side)
and also the current through the base of the transistor.

Typical values for the resistors 10k for all of them.

Warning:

There are some disadvantages with these 4 transistors.

If a line is pulled low, a current from the base to the emittor will turn that transistor on.

But the other transistor will leak current from the base to the collector.

That current will reduce the current in the first transistor.

I have build this circuit and it is doing well, but it doesn't meet the full I2C specifications

when the pull-up resistors are less then 4k7.



评分

参与人数 1银子 +3 收起 理由
liyf + 3 辛苦啦!

查看全部评分

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏1 分享分享 支持支持 反对反对
沙发
 楼主| 发表于 2014-11-27 21:43:28 | 只看该作者

板凳
发表于 2014-11-29 12:18:38 | 只看该作者
除了直接串电阻那个都太复杂
地板
发表于 2014-11-29 12:22:21 来自手机 | 只看该作者
ad2000 发表于 2014-11-29 12:18
除了直接串电阻那个都太复杂

其实安全有效最重要
5#
 楼主| 发表于 2014-11-29 16:11:45 | 只看该作者
ad2000 发表于 2014-11-29 12:18
除了直接串电阻那个都太复杂

直接串电阻不能驱动 5V CMOS 器件啊
6#
发表于 2019-1-7 13:00:29 | 只看该作者
最新整合的液晶编程器
7#
发表于 2020-5-3 22:00:12 | 只看该作者
感觉自己设计出自己需要的电路 好难啊
8#
发表于 2023-6-17 12:24:06 | 只看该作者
小白来学习下
9#
发表于 2023-8-3 11:20:11 | 只看该作者
这些电路楼主从哪里收集的
10#
发表于 2023-8-4 08:42:35 | 只看该作者
先赚银子后下载
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|文字版|手机版|DIY编程器网 ( 桂ICP备14005565号-1 )

GMT+8, 2024-11-16 08:08 , 耗时 0.106060 秒, 25 个查询请求 , Gzip 开启.

各位嘉宾言论仅代表个人观点,非属DIY编程器网立场。

桂公网安备 45031202000115号

DIY编程器群(超员):41210778 DIY编程器

DIY编程器群1(满员):3044634 DIY编程器1

diy编程器群2:551025008 diy编程器群2

QQ:28000622;Email:libyoufer@sina.com

本站由桂林市临桂区技兴电子商务经营部独家赞助。旨在技术交流,请自觉遵守国家法律法规,一旦发现将做封号删号处理。

快速回复 返回顶部 返回列表