完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
有很多关于这个的帖子在网上,我已经Google几天了。ASM I2C主控器(硬件外设),SLDA/SCL的线路低电压大约为1V。有人建议我曾在同一个线上与另一个驱动程序战斗,但是这个配置只是连接到上拉。我想看到一个开始条件,就这样。没有其他设备。TrISC<3:4& GT;都是输入,我已经与LATC/PORTC混淆,尝试了在勘误表中的方法,但仍然不能驱动这些低。似乎是一个明显的分压器(在当前配置中的端口电阻与端口电阻)。我可以发布代码,但有人有一个简单的例子,它只是将设备配置到一个点,我可以检查总线空闲和设置SPEN,并看到一个开始?这是固定的。
以上来自于百度翻译 以下为原文 There are a lot of posts about this on the internet, I've Googled for days now. ASM I2C master (hardware peripheral), line low voltage for both SDA/SCL is about 1V. It's been suggested that I was at one time fighting with another driver on the line, but this configuration is just connected to pullups. I wanted to see a start condition, that's all. There are no other devices. TRISC<3:4> are both inputs, I've messed with LATC/PORTC, tried the method in the Errata but still can't drive these low. Seems like an obvious voltage divider (pull-ups vs port resistance in current config). I can post code, but does someone have a simple, example that will just configure the device to a point where I can check for bus idle and set SPEN and see a start? This is fixed. |
|
相关推荐
3个回答
|
|
有些事情是错误的。如果你禁用I2C,只需将比特设置为输出(TISC)和低电平,通过写入LATC,它们会直接到达地面吗?
以上来自于百度翻译 以下为原文 Something is wrong. If you disable I2C, and just set the bits as outputs (TRISC) and low by writing to LATC, do they go right down to ground? |
|
|
|
是的,当我第一次开始硬件实现时,他们就这么做了。我总是用软件做这件事,所以我对MSSP很陌生。我现在正在进行沟通,但我仍然有一个问题。不管我给SSPBUF写什么,我的跟踪显示两个写中的所有7个地址和8个数据位都是0。显然,我什么也没得到,因为我不能称呼奴隶。有什么明显的东西是我忽视的吗?附图。我已经复制了一个L值到SSPBUF并等待它,但仍然B’0000000’…
以上来自于百度翻译 以下为原文 Yes, they did when I first started working on the hardware implementation. I've always done this in software, so I'm really new to MSSP. I'm getting communication now but I still have an issue. No matter what I write to SSPBUF, my trace shows that all 7 address and 8 data bits in two writes are 0. Obviously, I'm not getting anywhere because I can't address the slave. Is there anything obvious that I'm overlooking? trace attached. I've literally copied an l-value into SSPBUF and waited on it, but still b'0000000'... Attached Image(s) |
|
|
|
张贴你正在使用的真实代码。这总是比你所做的文字描述更可靠。
以上来自于百度翻译 以下为原文 Post the real code you are using. That's always more reliable than a text description of what you think you have done. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3209 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2260 浏览 5 评论
779浏览 1评论
672浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
598浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
682浏览 0评论
579浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 11:33 , Processed in 1.654277 second(s), Total 79, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号