完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我正在看18C单片机系列参考手册。Pay14-8表示,读取16位值并显示表存在一些问题,但我不理解问题与此表之间的关系。请帮忙,谢谢
以上来自于百度翻译 以下为原文 Hi, there. I am reading the spec of 18C MCU Family Reference Manual. The page14-8 saying there are some problem of reading 16-bit value and showed the table. But I don't understand what relates between problem and this table. Please help, thank you Attached Image(s) |
|
相关推荐
2个回答
|
|
只有RD16位的出现才是明确的。该位是专门用来避免读取寄存器的问题的,因为您必须将它读为两个独立的8位值。该表显示了两个示例,如果在运行时读取计时器,这会产生怎样的混淆值。“序列1”SH。当你读低位字节时,会发生什么。“序列2”显示当你读高位字节时会发生什么。如果两个读数之间的高位字节发生变化,都会给出与实际值相差很大的值。这非常有学术意义。只需设置RD16位以避免此问题。
以上来自于百度翻译 以下为原文 That only occurs of the RD16 bit is clear. That bit is there specifically to avoid problems reading the register, because you have to read it as two separate 8 bit values. That table shows two examples of how this can produce a confusing value if you read the timer while it is running. "Sequence 1" shows what happens when you read the low byte first. "Sequence 2" shows what happens when you read the high byte first. Both give a value greatly different to the real value if the high byte changes between the two reads. This really is very academic. Just set the RD16 bit to avoid this problem. |
|
|
|
QHB:谢谢,所以表显示读取错误只读取8位不同时。顺便说一下,我已经回复了前面的话题,请看一下,如果你愿意的话。
以上来自于百度翻译 以下为原文 To qhb: Thank you, so the table shows reading error ONLY read the 8 bit NOT at the same time. Btw, I have replied the post in previous topic, please take a look if you're willing to. |
|
|
|
只有小组成员才能发言,加入小组>>
5204 浏览 9 评论
2016 浏览 8 评论
1942 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3188 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2244 浏览 5 评论
755浏览 1评论
641浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
551浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
654浏览 0评论
554浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-5 18:42 , Processed in 1.086300 second(s), Total 46, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号