完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
MCP39F521数据表,第19页给出以下命令示例:表4-3:REGISTER WRITE,N-BYTES COMMAND(注1)来自MCP39F5211 0xA5报头Byte2 0x25字节数的字节#值字节描述响应ommand(Register Write,N字节)7 0x1C字节数,用于写入(28)8-36*Data*Data Bytes(28个总数据字节)37 Checksum Checksum ACKNote 1:此寄存器Write,N字节帧,如本文中所述,可用于写入整个校准目标数据集,从顶部开始,地址0x7A,以及继续写,直到这套寄存器的末尾,28字节以后,寄存器0x94.注意,这些不是校准寄存器,而是在发出自动校准目标命令之前需要写入的校准目标。有关更多信息,请参阅第8.0节,MCP39F521校准。在注释1中,它提到这个命令可以用来写入从顶部地址0x7A开始的整个校准目标数据集。但是,示例中的“地址高”和“地址低”分别是0x00和0x48。它们不应该是0x00和0x7a吗?在该示例中,它试图写入28字节(行7 0x1C字节数写入(28))。数据加上其余帧的8字节应该等于36字节,而它表示37字节。数据本身应该是8-35字节,校验和应该是36字节。这个例子是错误的,还是我误解了地址指针的设置以及命令的整体大小?谢谢,斯里达尔
以上来自于百度翻译 以下为原文 MCP39F521 datasheet, page 19 gives the following command example: TABLE 4-3: REGISTER WRITE, N- BYTES COMMAND (Note 1) Byte # Value Byte Description Response from MCP39F521 1 0xA5 Header Byte 2 0x25 Number of Bytes in Frame 3 0x41 Command (Set Address Pointer) 4 0x00 Address High 5 0x48 Address Low 6 0x4D Command (Register Write, N Bytes) 7 0x1C Number of Bytes to Write (28) 8-36 *Data* Data Bytes (28 total data bytes) 37 Checksum Checksum ACK Note 1: This Register Write, N Bytes frame, as written here, can be used to write the entire set of calibration target data, starting at the top, address 0x7A, and continuing to write until the end of this set of registers, 28 bytes later, register 0x94. Note these are not the calibration registers, but the calibration targets which need to be written prior to issuing the auto-calibration target commands. See Section 8.0, MCP39F521 Calibration for more information. From the Note 1, it mentions that this command can be used to write the entire set of calibration target data starting at the top, address 0x7A. However, the "Address High" and "Address Low" in the example are 0x00 and 0x48 respectively. Shouldn't they be 0x00 and 0x7A? In the example, it is trying to write 28 bytes (line 7 0x1C Number of Bytes to write (28)) . The data, plus the 8 bytes for the rest of the frame should equal 36 bytes, while it says 37 bytes. The data itself should be 8-35 bytes, and the checksum should be on byte 36. Is the example wrong, or am I misreading how the address pointer is to be set and also the overall size of the command? Thanks, Sridhar |
|
相关推荐
2个回答
|
|
你能澄清演说的问题吗?我计划在新的设计中使用MCP30F521,我发现除了演示板之外没有应用笔记。没有关于如何使用它与CT或其他传感器的文件。您的测试结果将非常感谢,因为您是论坛上使用AFE的少数用户之一。最好的问候,Sunish
以上来自于百度翻译 以下为原文 Were you able to clarify the addressing issue ? I am planning to use MCP39F521 in a new design and I find that there are no application notes other than the demo board. No documentation on how to use it with a CT or other sensors. Your test results would be appreciated as you are one of the few users on the forum using the AFE. Best regards, Sunish |
|
|
|
你好,Sun.,是的,上面列出的例子确实是不正确的,我上面建议的修正是正确的。
以上来自于百度翻译 以下为原文 Hi Sunish, Yes, the example above listed is indeed incorrect, and the corrections I had suggested above are the right ones. Cheers, Sridhar |
|
|
|
只有小组成员才能发言,加入小组>>
5161 浏览 9 评论
1999 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3171 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 19:42 , Processed in 1.089848 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号