raman00084
Full Member level 6
- Joined
- Nov 29, 2010
- Messages
- 375
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,298
- Activity points
- 4,076
i want to store 10 digit number in pic inbuilt eeprom using long integer, but i can store only 32,767 by doing the following
(long int) value=32767
(long int)low_bites=value & 0xff
(long int)high_bites= (value>>8) & 0xff
eeprom_write address_4= low_bites
eeprom_write address_5= high_bites
eeprom_read adress_4= (long int) a
eeprom_read adress_5= (long int) b
(long int) total=a+(b<<8)
lcd_print= total
by doing this i can get only 32767
how to increase to 10digit number for long int the max value is 2147483647
how to store this value how much eeprom memory i must take please send sample program
regards
kalyan
(long int) value=32767
(long int)low_bites=value & 0xff
(long int)high_bites= (value>>8) & 0xff
eeprom_write address_4= low_bites
eeprom_write address_5= high_bites
eeprom_read adress_4= (long int) a
eeprom_read adress_5= (long int) b
(long int) total=a+(b<<8)
lcd_print= total
by doing this i can get only 32767
how to increase to 10digit number for long int the max value is 2147483647
how to store this value how much eeprom memory i must take please send sample program
regards
kalyan