-
EEPROM and Strings
Hi all
Im just after a few opinions, im working on a small project that will send SMS via a GSM modem
I would like to store destination 4 phone numbers on the pic EEPROM and would like some advise on the best way to do this.
The phone numbers will be variable length, upto 15 digits long, first character of the phone number is always a '+'
Im using 16F883, pbp 2.60.
Phone number is input using Hserin, then need saving to EEPROM
how would some of you suggest i read/write the numbers to and from the EEPROM - the variable number length has me a little stuck...
-
Re: EEPROM and Strings
-
Re: EEPROM and Strings
well im currently reading them into a byte array and storing each digit as a byte, so i can pad the blank digits with spaces (FF).
just need to figure out how to strip the FF's from the digits when i read them back out of the eeprom...
-
Re: EEPROM and Strings
Just fill array with 0's before HSERIN. And use STR to send them. STR will send each byte from array, until byte isn't 0. 0 marks end of string.