完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
为什么MC?为什么????让我冷静下来……谁能帮我在PIC 18上写一个浮点到EEPROM,现在EEPROMYWORD()/Read()不起作用?以前我使用过的方法是使用以前版本的编译器,但现在不再使用了。谢谢你的帮助!!
以上来自于百度翻译 以下为原文 Why MC? why???? Let me calm myself down..... Can any one please help me write a float to eeprom on a pic 18, now that the eeprom_write()/read() doesn't work? they way I had it before was working on previous version of the compiler, but not anymore. Also, I tried using the EEPROM_WRITE(); and that doesn't work either! Thank you for the Help!! |
|
相关推荐
8个回答
|
|
嗨,说得更具体一些。它以前起作用了吗?在哪个编译器+版本?你使用哪个设备?当做
以上来自于百度翻译 以下为原文 Hi, Be a bit more specific. Did it work previously ? on which compiler + version ? Which device do you use ? Regards |
|
|
|
PIC 18?因为它们都是一样的?没有编译器或版本?你可以尝试安装遗留的PLIB,这可能会有帮助。数据表有答案。
以上来自于百度翻译 以下为原文 a pic 18? Since they are all the same? and No Compiler or Version? You can Try to install the Legacy PLib, that possibly could help. The data sheet has the answer. |
|
|
|
|
|
|
|
|
|
|
|
嗨,据我所知,为了保持与较老的XC8编译器的兼容性,PLIB可以加入,因为它们不是编译器的一部分:HTTP://www. McCHIP.COM/MPLAB/COMPILRES:这当然假设您使用了来自编译器的库(不是MCC生成的),Downloadsyou可以找到最后,PIC18PLIB。如果您使用来自MCC的一些库,那么您需要再次将它们添加到您的项目中,因为MCC V3.x不导入MCC V2.x项目。还需要添加MCC库。你可以在这里下载它们:HTTP://www. McCHIP.COM/MCCRGARDS
以上来自于百度翻译 以下为原文 Hi, As far as I remember, to keep compatibility with older XC8 compilers, PLIB can be added as they are not part anbymore of the compiler : http://www.microchip.com/mplab/compilers this assume of course you use a library from the compiler (not generated by MCC) Under the tab > Downloads you can find at the end the PIC18 PLIB. In case you used some libraries coming from MCC, then you need to add them to your project again as MCC v3.x does not import MCC v2.x projects . MCC libraries need also to be added. you can download them here : http://www.microchip.com/MCC Regards |
|
|
|
谢谢你,NKurzman,我会试试的。非常感谢你的帮助。
以上来自于百度翻译 以下为原文 Thank you NKurzman, I will try that. I really appreciate your help. |
|
|
|
如果你检查遗留的PLIB,你会发现代码微芯片用于访问EEPROM。您可以轻松地将其端口或从数据表(当它被提供时)。但是,初始化事物不那么明显。其次是从PLIB:只要PSECT不改变名称,它是好的。关于例程,它们是很容易实现的,当然,如果你做的话,它们会更健壮。请注意PLIB是BGGY。我在I2C库、LCD库等中发现了几个错误。
以上来自于百度翻译 以下为原文 If you check the legacy PLIB you will find the code microchip uses for accessing the eeprom. You can port it easily or take it from the datasheet (when it's supplied). But for initializing things less evident. Next is from PLIB: /* Initialise 8 bytes of data at the specified address in EEPROM * Address must be valid for the device and for the PSECT */ #define __EEPROM_DATA_AT(address, a, b, c, d, e, f, g, h) asm("tpsect eeprom_data,class=EEDATA,noexec"); asm("torg " ___mkstr(address) ""); asm("tdbt" ___mkstr(a) "," ___mkstr(b) "," ___mkstr(c) "," ___mkstr(d) "," ___mkstr(e) "," ___mkstr(f) "," ___mkstr(g) "," ___mkstr(h)) As far as the psect doesn't change the name, it's fine. About the routines they are quite simple to implement, and surely if you do, they will be more robust. Be aware PLIB is buggy. I found a couple of bugs in the I2C library, in the LCD library, etc... |
|
|
|
这里是一个宏,它接受任意数量的数据字节,而不仅仅是八个字节和八个字节的数据。
以上来自于百度翻译 以下为原文 Here is a macro that accepts any number of data bytes, and not just eight and only eight bytes of data. |
|
|
|
只有小组成员才能发言,加入小组>>
5142 浏览 9 评论
1990 浏览 8 评论
1918 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3159 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2215 浏览 5 评论
713浏览 1评论
601浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
484浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
613浏览 0评论
511浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-10 18:54 , Processed in 1.671476 second(s), Total 94, Slave 77 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号