jumper2high
Full Member level 3
Hello all,
I'm trying to find an answer to one very simple and silly question, but failing miserably.
In MPLab, when doing an ASM source file, I was able to tell the software that I want certain values burned into EEPROM upon programming, so I did:
And it would put those five values in the first five places in EEPROM.
However, if I try this in a C-file (using MCC18) I get an error. I've tried searching for the correct way to do this for some time now, but I can't seem to find it. Because of the type and amount of data I want to put in there - I want to avoid having to convert it all to hex manually and enter it through the EEPROM Editor.
I'm trying to find an answer to one very simple and silly question, but failing miserably.
In MPLab, when doing an ASM source file, I was able to tell the software that I want certain values burned into EEPROM upon programming, so I did:
Code:
ORG 0x2100
DW b'00000000'
DW b'01000010'
DW b'01111111'
DW b'01000000'
DW b'00000000'
And it would put those five values in the first five places in EEPROM.
However, if I try this in a C-file (using MCC18) I get an error. I've tried searching for the correct way to do this for some time now, but I can't seem to find it. Because of the type and amount of data I want to put in there - I want to avoid having to convert it all to hex manually and enter it through the EEPROM Editor.