完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
DOCS(至少2550和2520)说:SDI是由我所读取的SPI模块自动控制的,因为您不必为该位改变tiS,特别是当文本稍后谈到其余的摆动TIIS时,但这似乎并不成立。我必须为SDI设置相应的TIS位,以便它接收。还有其他人看到这个吗?
以上来自于百度翻译 以下为原文 The docs, at least for 2550 and 2520, say: • SDI is automatically controlled by the SPI module I read that as you do not have to change TRIS for that bit, especially as the text later talks about wiggling TRIS for the rest, but that does not seem to hold true. I had to set the corresponding TRIS bit for SDI as well for it to receive. Anyone else seen this? |
|
相关推荐
8个回答
|
|
|
这可能适用于具有PPS的芯片。(外围引脚选择)
以上来自于百度翻译 以下为原文 That may apply to chips that have pps. (peripheral pin select) |
|
|
|
|
|
|
|
|
|
|
|
你在看哪一个数据表?DS963E(18F2550)包含以下内容:
以上来自于百度翻译 以下为原文 Which datasheet are you looking at? DS39632E (18F2550) contains the following... |
|
|
|
|
|
这一个:http://WW1.Microchip .com /下载/ En/DeViceOC/963A.pdf,第167页:
以上来自于百度翻译 以下为原文 This one: http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf, page 167: |
|
|
|
|
|
你的链接被打破了,因为在结尾有一个'',''。在任何情况下,您都链接到一个文档,它是4个修订版,但Rev也表示同样的事情。然而,正如2550数据表所说的那样,TISI=1的SDI是不正确的。您已经很清楚地发现了[SARC]罕见的[SARC]微芯片数据表错误。这是令人沮丧的确定,但下一段说,任何串行端口功能,不希望可以通过重写相应的TIS位到相反的值。这证实了数据表,而不是硅,是错误的想法。
以上来自于百度翻译 以下为原文 Your link is broken, as there's a ',' at the end. In any case, you are linking to a document that is 4 revisions out of date, but even rev E says the same thing. However is untrue as the 2550 datasheet says TRIS=1 for SDI. You've clearly found a [sarc]rare[/sarc] microchip datasheet error. It is frustrating to be sure, but the next paragraph says Any serial port function that is not desired may be overridden by programming the corresponding TRIS bit to the opposite value. This corroborates the idea that the datasheet, not the silicon, are in error. |
|
|
|
|
|
在一些模块中,你必须设置TrIS/安塞尔,而不是其他的。不要总是在任何特定的情况下记住哪一个是真的,我总是设置TrIS/安塞尔来匹配PIN的性质和方向。那样就容易多了。
以上来自于百度翻译 以下为原文 On some modules you have to set TRIS/ANSEL, on others you don't. Rather than trying to remember which is true in any particular case, I always set TRIS/ANSEL to match the nature and direction of the pin. It is much easier that way. |
|
|
|
|
|
起初我没有注意到,但是这两个设备有不同的数据表。虽然它们相似,但我很久以前就知道,这些芯片中的许多芯片对外围模块的修改略有不同,所以我不相信一个数据表适用于另一个数据表。RROR和我去“真实数据表”直到/除非我发现它似乎不太管用。
以上来自于百度翻译 以下为原文 I didn't notice at first, but those two devices have different datasheets. While they're similar I learned a long time ago that many of these chips have slightly different revisions of the peripheral modules so I don't trust one datasheet to apply to another. Add to that the multitude of copy-paste errors and I go with the "real datasheet" until/unless I find it doesn't seem to quite work. |
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475 浏览 0 评论
5795 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1125浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 03:31 , Processed in 0.792094 second(s), Total 56, Slave 49 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2260