Microchip
直播中

甘满盛

7年用户 1191经验值
擅长:386660
私信 关注
[问答]

HTC相当于EEPROM宏

大家好,我把一个用HTC编译器编译的旧代码移植到设备PIC18F42的MCC18 V3.47编译器上。谁能告诉我在编译时初始化EEPROM的EEPROM宏是什么?在HTC代码中,我这样做:这将初始化从设备地址EEPROM的地址0到7的前8个位置。如何在MCC18编译器的代码中做到这一点?任何帮助都是伟大的。

以上来自于百度翻译


      以下为原文

    Hi everyone

I am porting an old code which was compiled with HTC compiler to the MCC18 v3.47 compiler for device PIC18F452.

Can anyone tell me what is the equivalent of EEPROM macros for initializing the EEPROM at compile time?

In the HTC code i was doing it as this:

__EEPROM_DATA('J','0','0','0','1','0','8','0');

This would initialize the first 8 locations, from address 0 to 7, of the device EEPROM.

How can i do same this in code for MCC18 compiler?

Any help is great.

回帖(19)

李兆峰

2019-3-11 12:38:18
有人建议您使用XC8编译器线程,如这些可能有帮助:HTTP:/www. MyCHIP.COM/FUMMS/M79733ASPX

以上来自于百度翻译


      以下为原文

    Somebody would suggest you use XC8 compiler
 
Threads like these might help:
http://www.microchip.com/forums/m797439.aspx
 
举报

李兆峰

2019-3-11 12:53:08
HTTP://www. McCHIP.COM/FUMMS/M906921.ASPX

以上来自于百度翻译


      以下为原文

    http://www.microchip.com/forums/m906921.aspx
 
举报

杨玲

2019-3-11 13:07:51
为什么要从一个过时的编译器移植到一个过时的编译器?

以上来自于百度翻译


      以下为原文

    Why are you porting from one obsolete compiler to a different obsolete compiler?
举报

寇昕

2019-3-11 13:17:32
我现在资源有限,一个小英特尔原子上网本1.8GHz,1GB,Windows 7的这项工作。MPLAB V860工作精细。我试图安装XC8编译器上,但不能让它工作。于是我尝试了McC18,它工作了。我不知道MPLABX是否会运行在这个小机器上。我没有试过。有没有想过值得一试?

以上来自于百度翻译


      以下为原文

   


I am resource limited at the moment; a small Intel Atom netbook 1.8GHz, 1GB, Windows 7 for this work. MPLAB v8.60 working fine on it. I tried to install XC8 compiler on it but could not get it working.. So then i tried MCC18 and it worked.
I dont know if MPLABX will run on this small machine. I did not try it. Any idea if it worth the try?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分