storing 0-255 8 bit integer values to eeprom

Status
Not open for further replies.

syenidogan

Member level 1
Joined
Mar 6, 2014
Messages
41
Helped
2
Reputation
4
Reaction score
3
Trophy points
8
Visit site
Activity points
297
i want to store numbers from 0-255 (like 1,2,3..... 11, .....101.....200,201.....255)
In one byte i want to store 155 lets say. how can i do that in hi tech c (for pic)
 

you may use a for loop or while loop for this situation.

Code C - [expand]
1
2
3
4
for(i=0;i<155;i++)
{
    //Eeprom write i
}

 
Last edited by a moderator:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…