Comments on: Using Internal EEPROM of PIC Microcontroller https://electrosome.com/internal-eeprom-pic-microcontroller/ You Inspire.....We Create..... Tue, 16 May 2017 18:54:00 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: sambasivam https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6778 Tue, 16 May 2017 18:54:00 +0000 https://electrosome.com/?p=2582#comment-6778 Hi, how to swap the data from one register to another register without eeprom.

]]>
By: Emilio Miranda https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6614 Thu, 19 Jan 2017 18:16:00 +0000 https://electrosome.com/?p=2582#comment-6614 Hi, I have some issues with mikroC EEPROM_Read function. There are some cases when I read a location but no data is saved in ram. I am 100% sure the right addresses are being read since I had written the address after to check if I don´t read any random location. This problem has been solved writing a Delay_ms(20) before the eeprom read instruction. I don´t really know if less time is needed but it works. My question is if someone knows why this problem is solved this way. Thanks.

]]>
By: Shakil Ahmed https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6593 Mon, 02 Jan 2017 17:33:00 +0000 https://electrosome.com/?p=2582#comment-6593 Dear sir
Thankyou for your nice blog. I have a question..I want to write a large number I.e 12000000 in EEPROM and want to recall the number for further use. How can I do this?
Thanks

]]>
By: Ligo George https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6542 Sun, 04 Dec 2016 07:41:00 +0000 https://electrosome.com/?p=2582#comment-6542 In reply to Islam Bek.

Then you have to make necessary changes in the program to make it compatible with 18F452. Kindly use our forums https://electrosome.com/forums/ for support as it is outside the scope of above article.

]]>
By: Islam Bek https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6540 Sat, 03 Dec 2016 11:17:00 +0000 https://electrosome.com/?p=2582#comment-6540 In reply to Ligo George.

oh im sorry i forget to mention, i am usin pic18f452 and mikroc 6.6.3

]]>
By: Ligo George https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6538 Sat, 03 Dec 2016 07:32:00 +0000 https://electrosome.com/?p=2582#comment-6538 In reply to Islam Bek.

Are you using the same microcontroller, 16F877A in simulation ?
16F877A and 16F877 are different microcontrollers.

]]>
By: Islam Bek https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6537 Fri, 02 Dec 2016 22:56:00 +0000 https://electrosome.com/?p=2582#comment-6537 HI sir
I downloaded yor project and run the simulation it is giving such warning :
[PIC16 EEPROM] PC=0x0032. Cannot set EECON1 without first setting EECON1 in a previous instruction. [U1]
[PIC16 EEPROM] PC=0x0033. Write to EECON1 sets both EECON1 and EECON1 simultaneously. This is ambiguous – both bits will be considered clear. [U1]

Also,i have tried lot of methods even the mikroc default examples but i am not able to write and read anything to eemprom however when i use eeprom editor it is working, can you give any advice?

]]>
By: Sujit Mishra https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6213 Thu, 11 Aug 2016 07:49:00 +0000 https://electrosome.com/?p=2582#comment-6213 Hello Sir, I am trying to write a code to store user input string into an array using simple 4 push buttons and then writing it in internal EEPROM of pic microcontroller. The string is stored in an array but unable to write into EEPROM. Sir can you help me on this issue, below is my code:

#include “INCLUDE.h”

__CONFIG(FOSC_HS & WDTE_OFF & PWRTE_OFF & BOREN_ON & LVP_OFF & CPD_OFF & WRT_OFF & CP_ON);

__EEPROM_DATA(‘W’,’E’,’L’,’C’,’O’,’M’,’E’,’ ‘); // Initial string character for 1st time programming.
__EEPROM_DATA(‘E’,’E’,’P’,’R’,’O’,’M’,’ ‘,’ ‘);

// String array to store 3 digit access code
char message4[] = “WRITE COMPLETED”;
char message5[] = “Reading Data”;
char message7[] = “Welcome EEPROM”;
char Edata[] = “0000000000000000”;
unsigned short k, NUM ;
unsigned int ADD; // Start EEPROM Location
char temp, cursor;

void main (void)
{
TRISC = 0x20; //PORTC as output
TRISD = 0x08; //PORTD as output
TRISB = 0b01000000; //IR SENSOR INPUT ON RB6
TRISB7 = 0;
POWER_LED = 0;
PORTA = 0;
PORTC = 0;
PORTD = 0;

InitLCD ();
InitADC ();

lcd_gotoxy(0,3);
WriteStringToLCD(“Testing”);
lcd_gotoxy(1,0);
WriteStringToLCD(“internal EEPROM”);
__delay_ms(1000);
ClearLCDScreen();
lcd_gotoxy(0,3);
WriteStringToLCD(“ENTER TEXT”);

do
{
// Read operation
if(POWER == 1)
{
__delay_ms(400);
ClearLCDScreen();
lcd_gotoxy(0,2);
WriteStringToLCD(message5);
ADD = 0;
for (k = 0; k < 16; k++)
{
temp = eeprom_read(ADD+k);
Edata[k] = temp;
}
lcd_gotoxy(1,0);
WriteStringToLCD(Edata);
__delay_ms(2000);
}
// Cursor increment Operation
if (ENTER == 1)
{
__delay_ms(400);
k = k + 1;
cursor = cursor + 1;
}
// Read & Write Operation
if (BACK == 1)
{
// Write operation
__delay_ms(400);
ADD = 0;
for (k = 0; k ‘Z’) message7[k] = ‘A’;

else if(message7[k] ‘Z’) message7[k] = ‘A’;

else if(message7[k] < 'A') message7[k] = 'Z';

lcd_gotoxy(1,cursor);
WriteDataToLCD(message7[k]);
message7[ADD] = message7[k];
}
}
while(1);
}

]]>
By: Ligo George https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6126 Thu, 02 Jun 2016 12:54:00 +0000 https://electrosome.com/?p=2582#comment-6126 In reply to Oscar.

It is saving to the internal EEPROM of the PIC. It doesn’t need power to keep the data.

]]>
By: Oscar https://electrosome.com/internal-eeprom-pic-microcontroller/#comments/6060 Sun, 01 May 2016 06:31:00 +0000 https://electrosome.com/?p=2582#comment-6060 In reply to Ligo George.

Hi Ligo,I have a dc motor .” char t ” that my “duty cycle=t ” I increase it with push button,
but how can I save it to a variable that be saved in pic after off and on again?
thank you in advance.

]]>