Atmega64 引脚问题。 SCL/SDA 与 TXD/RDX 相同吗?
无论如何,我都不是 Atmega 专业人士。事实上,从未与他们合作过。我正在尝试使用 i2c 接口将外部 eeprom 添加到使用 Atmega64 控制器的设备。从数据表中,我看到引脚 25 和 26 标记为 PD0/PD1,并且是 i2c 的 SCL/SDA。这很好,花花公子。然后我走到黑板上开始追踪。我看到这些开关连接到带有一些简单电路的摇杆开关,我还没有仔细研究过,但我认为它是 i2c 兼容的。但后来我意识到这个设备有两个这样的摇杆,所以我希望将另一个摇杆追溯到相同的两个引脚(因为 i2c 是可以有多个从设备的总线)。相反,他们追溯到两个相邻的引脚 27 和 28,标记为 PD2/PD3 和 RXD1/TXD1。好吧,现在这让我很困惑。
我希望我可以在 SCL/SDA 线上并行添加内存,但是我现在发现我发现的意思是:
- SCL/SDA 可以与 RXD1/RXD2 互换,或者
- 我对 SCL/SDA 的工作原理感到困惑它不是总线还是可以用作简单的输入?
可悲的是,我不太确定我在问什么。有人可以解释一下吗?我是否仍然可以将内存添加到 SCL/SDA,或者可能不能?
谢谢。
史蒂夫
I'm not an Atmega pro by any means whatsoever. In fact, never worked with them. I'm trying to add an external eeprom using i2c interface to a device that uses an Atmega64 controller. From the datasheet, I see that pins 25 and 26 are labeled PD0/PD1 and are the SCL/SDA for i2c. That's fine and dandy. So then I go to the board and start tracing. I see that those go to a rocker switch with some simple circuitry that I haven't had a good look at yet, but I assumed it was something i2c compatible. But then what dawned on me was that this device has two such rockers so I expected to trace the other rocker back to the same two pins (since i2c is a bus that can have multiple slaves). Instead, they traced back to the two adjacent pins 27 and 28 labeled PD2/PD3 and RXD1/TXD1. Well, now that confused me.
I expected that I could add the memory in parallel on the SCL/SDA lines, but does what I now figure that what I discovered either means:
- SCL/SDA is interchangeable with RXD1/RXD2 or
- I'm confused on how SCL/SDA works and its not a bus or it can be used as a simple input?
Sadly, I'm not really sure what I'm asking. Can someone shed some light on this? Should I still be able to add the memory to SCL/SDA or probably not?
Thanks.
Steve
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,我找到了答案。它既是总线又是简单的输入......两者之一。在这种情况下,它被用作输入,所以我不能也将它用作总线。该死。那好吧。
Nevermind, I found the answer. Its BOTH a bus and a simple input... either one or the other. In this case, its being used as an input so I can't also use it as a bus. Darn. Oh well.