armghan11
Member level 1
- Joined
- Oct 9, 2012
- Messages
- 41
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,557
here is the program i am using to read and write 8bit values.... but how can i read and write float values in eeprom
Code:
#include <16F877A.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#rom 0x2100 = { 7, 39 }
#include <lcd2.c>
void main() {
int8 value,value1;
lcd_init();
value = read_eeprom (0x2100);
value1= read_eeprom (0x2101);
delay_ms(6);
lcd_gotoxy(1,1);
printf(lcd_putc,"Hammad Armghan");
lcd_gotoxy(1,2);
printf(lcd_putc,"D1=%u",value);
lcd_gotoxy(9,2);
printf(lcd_putc,"D2=%u",value1);
while(TRUE)
{
}
}