大家好,我把一个用HTC编译器编译的旧代码移植到设备PIC18F42的MCC18 V3.47编译器上。谁能告诉我在编译时初始化EEPROM的EEPROM宏是什么?在HTC代码中,我这样做:这将初始化从设备地址EEPROM的地址0到7的前8个位置。如何在MCC18编译器的代码中做到这一点?任何帮助都是伟大的。
以上来自于百度翻译
以下为原文
Hi everyone
I am por
ting 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.