完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试使用16字节ID位置。在C代码中,我使用下面的语句在MPLABX20000=0x12200×0= 0x2409003=0x00中初始化ID存储器γ-PrimaTracMeCopIg 0ID12=PrasMAR-CONFIG IDICOL1= 0x34 ID内存视图,但是,如果我执行下面的{PrimaMac配置文件ID0C0}0x123*在MPLAXX0000=0x23 0 0 0 0 1=0x01200 0 0=0x562 0 0 0 3=0x04的S ID内存视图中,XC8看起来将ID位置视为3个字节值,但是所有的IfOI都显示出16个8位值。是否有不同的方式来初始化8位值?干杯
以上来自于百度翻译 以下为原文 I am trying to use the 16 byte ID locations. In the C code I use the following statement to initialize the ID memory #pragma config IDLOC0 = 0x12 #pragma config IDLOC1 = 0x34 ID memory view in MPLABX 200000 = 0x12 200001 = 0x00 200002 = 0x34 200003 = 0x00 However if I do the following #pragma config IDLOC0 = 0x123 #pragma config IDLOC1 = 0x456 I get this ID memory view in MPLABX 200000 = 0x23 200001 = 0x01 200002 = 0x56 200003 = 0x04 It looks like XC8 is treating the ID locations as 3 nibble values, however all info I have seen indicates 16 8 bit values. Am I missing something? Is there a different way to initialize the 8 bit values? Cheers |
|
相关推荐
1个回答
|
|
这个问题的答案可以找到。HTTP//www. McCHIPS./MUCH3S/M10318.ASPX基本上改变PIC18LF67 K40.CFGDATA文件(不确定为什么它是错误的)CWOR: 200000:FFF:IDROC0cWord:200002:FFF:IDOLC1cWord:200004:FFF:IDROC2cWord:200006:FFF:IDROC3cWord:200008:FFF:FIDF:IDORC4CWORDFROC5CWord:FFF:IDORC6CWO:20000:EF:FIDF:IDROC7CYWord:200000:FF:IfLoC0CWord:200002:FF:IfLoC2CWOR: 200003:FF:IDROC3CWORD:200004:FF:IDROC4CWORD:200005:FF:IDROC5CWORD:200006:FF:IDROC6CWORD:200007:FF:FF:IDORC7CWORD:200008:FF:IDFROC8CWORD:200009:FIF:900;A: FF:IDLoC10cWord:FF:IfLoC11CWOR:20000:C:FF:IDLoC12CWOR:20000:FF:IDROC13CWOR:20000:EF:FID:1400字:FF:FF:IDLoC15初始化ID位置:
以上来自于百度翻译 以下为原文 The answer to this can be found here. http://www.microchip.com/forums/m1031810.aspx Basically change the PIC18LF67k40.cfgdata file (not sure why it is wrong) CWORD:200000:FFF:FFF:IDLOC0 CWORD:200002:FFF:FFF:IDLOC1 CWORD:200004:FFF:FFF:IDLOC2 CWORD:200006:FFF:FFF:IDLOC3 CWORD:200008:FFF:FFF:IDLOC4 CWORD:20000A:FFF:FFF:IDLOC5 CWORD:20000C:FFF:FFF:IDLOC6 CWORD:20000E:FFF:FFF:IDLOC7 becomes CWORD:200000:FF:FF:IDLOC0 CWORD:200001:FF:FF:IDLOC1 CWORD:200002:FF:FF:IDLOC2 CWORD:200003:FF:FF:IDLOC3 CWORD:200004:FF:FF:IDLOC4 CWORD:200005:FF:FF:IDLOC5 CWORD:200006:FF:FF:IDLOC6 CWORD:200007:FF:FF:IDLOC7 CWORD:200008:FF:FF:IDLOC8 CWORD:200009:FF:FF:IDLOC9 CWORD:20000A:FF:FF:IDLOC10 CWORD:20000B:FF:FF:IDLOC11 CWORD:20000C:FF:FF:IDLOC12 CWORD:20000D:FF:FF:IDLOC13 CWORD:20000E:FF:FF:IDLOC14 CWORD:20000F:FF:FF:IDLOC15 To initialize the ID location #pragma config IDLOC0 = 0x12 #pragma config IDLOC1 = 0x34 Cheers ... |
|
|
|
只有小组成员才能发言,加入小组>>
5255 浏览 9 评论
2038 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3219 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2268 浏览 5 评论
792浏览 1评论
688浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
617浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
686浏览 0评论
586浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 17:30 , Processed in 1.457858 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号