Internal EEprom Problem, Plz Help!!

General discussion on Libstock website & codes posted on this website.
Post Reply
Author
Message
noor_31
Posts: 3
Joined: 17 Oct 2014 20:15

Internal EEprom Problem, Plz Help!!

#1 Post by noor_31 » 17 Oct 2014 20:21

Hello! I would like someone who could help me in this code its a simple one for internal eeprom but when simulating the lcd doesn't show whats should be shown

Code: Select all

// LCD module connections
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;

sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;
// End LCD module connections

void main() {
unsigned short Data;
lcd_init();
while(1){
unsigned short Data;
EEPROM_Write(60,10);
delay_ms(1000);
Data = EEPROM_Read(60);
lcd_out(1,1,5);
delay_ms(1000);
        }

         }

User avatar
petar.timotijevic
mikroElektronika team
Posts: 1739
Joined: 19 Feb 2014 13:46
Location: Serbia
Contact:

Re: Internal EEprom Problem, Plz Help!!

#2 Post by petar.timotijevic » 21 Oct 2014 10:05

Hi noor_31 and welcome to the MikroE forum,

There is second copy of this question, please see answer here:
http://www.mikroe.com/forum/viewtopic.p ... 29#p246729


Best regards,
Peter

Post Reply

Return to “Libstock Discussion”