jmlabuac
Newbie level 5
Hi... I'm using pic16f877a... I want to save an unsigned int to its eeprom however the value that can only be saved is unsigned short.. I needed to use unsigned int because of its range...
I'm thinking of getting the two bytes of the int and them saving them on two different eeprom memory and when I need to read them I will just get the two bytes and put them back together...
My problem is, I don't have a clue yet as to how I would separate those two bytes ... Can anyone help me? Or is there a much better way?
I'm thinking of getting the two bytes of the int and them saving them on two different eeprom memory and when I need to read them I will just get the two bytes and put them back together...
My problem is, I don't have a clue yet as to how I would separate those two bytes ... Can anyone help me? Or is there a much better way?