完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
对于PIC24FJ256GA702,我需要读取UDID和AM有麻烦。方法TreDeMPLAB程序内存视图(调试会话)直接代码访问(例如“UDID(0)=*(Uti1616T*)0x800 F02;”)如何读取UDID,既不工作!要注意的是,我已经彻底检查了下面的例子:Microchip论坛-参考……阅读UDID(http://www. Microchip .com /论坛/ M100816.ASPX)Microchip论坛-Pic24FJ,可以读取UDID(http://www. Microchip .com /论坛/ M98967 .ASPX)的想法?我错过了什么?
以上来自于百度翻译 以下为原文 For the PIC24FJ256GA702 I need to read the UDID and am having trouble. Methods Tried
References
|
|
相关推荐
3个回答
|
|
UDID是AT0x801600到0x801608为您的PIC…
以上来自于百度翻译 以下为原文 The UDID is at 0x801600 to 0x801608 for your PIC... |
|
|
|
该设备具有独立的数据和程序地址空间。你需要程序空间。我会用TBRRDL阅读它。
以上来自于百度翻译 以下为原文 This device has separate data and program address spaces. You need program space. I would use TBLRDL to read it. |
|
|
|
首先,你忘了提到“不工作”是什么意思。请更具体。您的参考链接不起作用,因为包含了括号。如果您遵循第二个链接,HTTP://www. McCHIP.COM/FUMMS/M98967.ASPXY,您就看不到用IPE读取UDID(在GB6家族以前的一些版本中已经工作过)了。4 NOR GB6族。因此,我认为它也不会用于GA705。如果从这里你选择了你将在这里得到的链接:HTTP://www. McCHIP.COM/FoMss/FordPase/981589U将找到如何访问GA705族的UDID(和更多的内存位置)的代码。表29 -5显示了UDID地址,这似乎是你所犯的错误。D.UDID1 0x800 F0UDI2 0x800 F02…UDID5 0x800 F08DS300 10118B页340,& lt & & lt;;(编辑:继续阅读线程& Rev B;过时和包含错误地址)(希望Microchip正确地记录它们,文档对于GB4(其他线程)是错误的)。e作业,替换dg**函数,它们是自定义显示函数。
以上来自于百度翻译 以下为原文 FIRST, you forgot to mention what "does not work" means. Please be more specific. Your reference links don't work, because the closing parenthesis is included. If you follow the second link, http://www.microchip.com/forums/m998867.aspx you see that I was not able to read the UDID with IPE (worked in some previous version for the GB6 family) any longer for GB4 nor GB6 family. So I assume it won't for GA705 either. If from there you choose the link you will get here: http://www.microchip.com/forums/FindPost/981589 You will find the code how to access the UDID (and more memory locations) For the GA705 family the Table 29-5 shows the UDID addresses, which you seem to have found. UDID1 UDID2 ... UDID5 DS30010118B-page 340, <<< [edit: continue reading thread -> Rev B is outdated and contains wrong addresses] (Let's hope Microchip documented them correctly, documentation was wrong for the GB4 (other thread)). The following code should do the job, replace the dbg* functions, they are custom display functions. unsigned int j, wAddr, wData, wTablePag = TBLPAG; // save previous setting TBLPAG= 0x80; // retrieve the PIC24 UDID wAddr = 0x1600; // edit: 0x0F00 is wrong; dbgPuts("UDID="); for (j=0;j<5;++j) { dbgPuts("UDID"); dbgPutc('0'+j+1); dbgPuts(" = "); dbgPutHex( __builtin_tblrdh( wAddr) ); wData = __builtin_tblrdl( wAddr) ; dbgPutHexW( wData ); wAddr += 2; dbgPutLF(); } TBLPAG = wTablePag; |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
771浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
588浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
671浏览 0评论
571浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 00:19 , Processed in 1.342864 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号