将加速度计连接到微控制器上拉电压
我正在尝试将 MMA852Q 加速度计连接到 18F2550 微控制器。根据加速度计数据表,i2c 时钟和数据线不能承受超过 1.6-3.7 (+0.3) 的电压。这些线路必须拉至 5V 微控制器才能工作。我是这个主题的新手,您解决这个问题的建议将会非常有帮助。
Im trying to connect a MMA852Q accellerometer to a 18F2550 microcontroller. According to accellerometer datasheet i2c clock and data lines would not tolerate voltages more than 1.6- 3.7 (+0.3). Those lines have to be pulled up to 5v for microcntroller to work. Im new in to this subject and your advice to overcome this issue would be really helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以寻找“I2C 电平转换器”来将不同电压的总线连接在一起。
例如,NXP appnote 10441 (pdf) 有一个非常简洁的通用说明。
You could look for "I2C level shifter" for attaching buses with different voltages together.
NXP appnote 10441 (pdf) has a very neat generic one, for example.