How do I set up initial values in the EEPROM so they are there when I write a new program to the PIC.
I know how to do it in ASM but can't find any info for the 'C' for PIC.
EEPROM Initial values
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: EEPROM Initial values
Hello,
The EEPROM Editor is used for manipulating MCU's EEPROM memory.
You can launch it from the drop-down menu Tools › EEPROM Editor.
When you run mikroElektronika programmer software from mikroC PRO for PIC IDE - project_name.hex file will be loaded automatically while ihex file must be loaded manually. Best regards,
Losic Tihomir
The EEPROM Editor is used for manipulating MCU's EEPROM memory.
You can launch it from the drop-down menu Tools › EEPROM Editor.
When you run mikroElektronika programmer software from mikroC PRO for PIC IDE - project_name.hex file will be loaded automatically while ihex file must be loaded manually. Best regards,
Losic Tihomir
mikroElektronika [Support team]
Re: EEPROM Initial values
Under MPASM one could do the following to predefine EEPROM content :
Is there a similar way in MikroC to define the contents of the on-board EEPROM?
While the EEPROM editor is a neat tool, it does not support comments regarding the values specified.
It neither supports simultaneous display the contents of the EEPROM using different numbering bases (such as binary, decimal, hex).
Code: Select all
ORG 0x2100
DE B'01011010' ; comment 1
DE D'1' ; comment 2
DE 0xAB ; comment 3
While the EEPROM editor is a neat tool, it does not support comments regarding the values specified.
It neither supports simultaneous display the contents of the EEPROM using different numbering bases (such as binary, decimal, hex).