Eeprom ascii list inside the code

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
paulfjujo
Posts: 1544
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Eeprom ascii list inside the code

#1 Post by paulfjujo » 03 Aug 2014 14:05

hello,

I allready saw some request for including Eeprom data decalaration inside the code..
like with C18 Mplab.. but no answer ..

It is not pratical to open Eeprom window and work with C code in same time,
and impossible to do the link with the data outside MikroC, when just readind the C code.
and if we forget to attach *.ihex ,and run
the program can goes everywhere..

Even this ,
How to do to capture literal ascii of eeprom file *.ihex, except doing screen hardcopy?
Now, the only way i have is to use excel and a vba macro
to include the adresse of each row of eeprom and corresonding ascii data
into my C source code.

I open the *.ihex file with excel as csv or txt , without using any filter or delimiter
the i use my Eeprom_list.xls sheet
to copy the area of eeprom containing the decimal values into this sheet
et launch the macro wich display adresses in decimal and ascii corresponding values for
each pair of decimal values ..
et copy past into my code..

EEPROM_list.zip

Eeprom_list_xls.jpg

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Eeprom ascii list inside the code

#2 Post by filip » 05 Sep 2014 10:56

Hi,

Please, can you tell me how would you wish that we implement EEPROM handling ?

Regards,
Filip.

paulfjujo
Posts: 1544
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Re: Eeprom ascii list inside the code

#3 Post by paulfjujo » 14 Sep 2014 18:54

hello Filip,


in fact , my reference is C18 MPLAB
and i think it could be possible to define
the absolute origine of eeprom
, and then direct write data (easy when ascii) to fill the eeprom
but trough the C code , not via external ihex file.

example:
eeprom 1Ko for a PIC18F46K22

Code: Select all



#pragma romdata EEP1_=0xF00000

      rom unsigned char EEPROM_data [][32] ={
      //   1234567890123456789012345678901
          " 18F46K22 40Mhz Q=10Mhz PLLx4\r", //0 0   avec terminateur zero
          " Sinus                       \r", //1 20
          " Carre                       \r", //2 40 
          " Triangle                    \r", //3 60 
          " Dent de scie                \r", //4 80 
          " Reverse dent de scie        \r", //5 A0 
          " Rectangle f(Taux)           \r", //6 C0 
          " Reglage Taux Rectangle (pot)\r", //7 E0 
          " Reglage maxi sortie DAC Volt\r", //8 100
          " Choix Freq.PICDDS 1 parmi 63\r", //9 120 
          " Reglage Fin Frequence PICDDS\r", //10 140
          " Gestion DDS AD9835 SPI softw\r", //11 160
          " Reglage Freq DDS AD9835 a :  ", //12 180
          " Init sortie DAC maxi a :     ", //13 1A0
          " MPLAB IDE V8.90,C18 V3.44.  \r", //14 1C0
          " "Versus"  paulfjujo \r"             //15 1E0
          };
  #pragma
  #pragma romdata EEP2_=0xF00200
          rom unsigned char EEPROM_MSG [][16]={
   // tous les msg sont cadres sur 16 cars, donc sans terminateur zero !
         //1234567890123456
         // "Version 16/03/13",//0
          Versus,
          "     SINUS      ",//10   1
          "     Carre      ",//20   2
          "     Triangle   ",//30   3
          " Dents de SCIE  ",//40   4
          "rev Dent de SCIE",//50   5
          "    Rectangle   ",//60   6
          "Regl.TAUX Rectan",//70   7
          "                ",//80   8
          "Choix Freq Fixes",//90   9
          "Regl.Freq PICDDS",//A0   10
          "Mode DDS  AD9835",//B0   11
          "Regl.Freq AD9835",//C0   12
          "                ",//D0   13
          "F0 ou F1  AD9835",//E0   14
          "                " //F0   15
          };      
#pragma



Cordialement
Paul

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Eeprom ascii list inside the code

#4 Post by filip » 15 Sep 2014 14:29

Hi,

Thank you for your suggestion, I have passed it to our developers.

Regards,
Filip.

paulfjujo
Posts: 1544
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Re: Eeprom ascii list inside the code

#5 Post by paulfjujo » 31 Oct 2015 19:31

Hello,


Are they some progress about this request ?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Eeprom ascii list inside the code

#6 Post by filip » 03 Nov 2015 08:32

Hi,

Unfortunately, there are no news regarding this.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC General”