EEPROM Initial values

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
pumper
Posts: 277
Joined: 10 Jan 2011 17:37

EEPROM Initial values

#1 Post by pumper » 14 Mar 2011 13:38

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.

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: EEPROM Initial values

#2 Post by tihomir.losic » 14 Mar 2011 16:29

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.
eeprom_editor.PNG
eeprom_editor.PNG (31.48 KiB) Viewed 2339 times
Best regards,

Losic Tihomir
mikroElektronika [Support team]

andrixnet
Posts: 8
Joined: 12 May 2011 11:50

Re: EEPROM Initial values

#3 Post by andrixnet » 12 May 2011 17:31

Under MPASM one could do the following to predefine EEPROM content :

Code: Select all

ORG 0x2100
DE       B'01011010'          ; comment 1
DE       D'1'                        ; comment 2
DE       0xAB                      ; comment 3
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).

Post Reply

Return to “mikroC PRO for PIC General”