完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
将为PIC24HJ16GP304处理器编写的代码在PIC24HJ64 GP204处理器上无需修改吗?
以上来自于百度翻译 以下为原文 Will code written for the PIC24HJ16GP304 processor work without modification on the PIC24HJ64GP204 processor? |
|
相关推荐
2个回答
|
|
依赖于芯片的代码需要对PIN分配等进行调整,并且必须检查RAM的使用是否兼容。但是大多数代码可能工作得很好。
以上来自于百度翻译 以下为原文 The chip type dependent code needs adjustments for pin assignments etc. And you have to check if your RAM usage will be compatible. But most of the code will probably work fine. |
|
|
|
如果不看这两个设备的数据表,我建议您比较您正在使用的外围设备(和振荡器)的各种寄存器,以及配置设置。如果新处理器中有额外的“工作”位(表示一些额外的功能),以及它们的默认设置是什么,以及它们会产生什么样的影响,它们将显示给您。一般来说,控制和状态寄存器的默认设置是每个位为“0”,其具有功能性TU。关闭。因此,如果你的原始代码在这些寄存器中设置了特定的位,那么你应该是可以的,但是如果你同时设置整个寄存器,那么你需要检查你还没有打开一些你不想要的功能。如果您用配置位来保护内存,那么它们可能需要进行调整以适应内存保护默认设置通常是“未保护”的。此外,如果使用的是处理器特定的内存边界(例如,某些设备有特定的内存范围为DMA留出),那么这些也需要检查。
以上来自于百度翻译 以下为原文 Without looking at the data sheets for the two devices,I would suggest that you compare the various registers for the peripherals (and oscillator) that you are using, as well as the config settings. They will show you if there are extra 'working' bits in the new processor (that represent some additional functionality) and what their default setting is and what impact that will have. Generally the default settings for control and status registers is each bit is '0' which has the functionality turned off. Therefore if your original code sets the specific bits in these registers then you should be OK, but if you set the whole register at once, they you will need to check that you have not turned on some functionality that you didn't intend to. It seems that you are going to a device with more memory. If you are protecting that memory with the config bits then they will probably need to be adjusted to suit - the memory protection default setting is generally 'unprotected'. Also if you are using processor-specific memory boundaries (e.g. some devices had specific memory ranges set aside for DMA) then these will need to be checked as well. Susan |
|
|
|
只有小组成员才能发言,加入小组>>
4933 浏览 9 评论
1882 浏览 8 评论
1820 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3026 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2111 浏览 5 评论
526浏览 1评论
377浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
430浏览 0评论
320浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
806浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-7-20 15:03 , Processed in 1.112252 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号