Storage in internal memory of PIC16F877A microcontrollers.

Status
Not open for further replies.

bikash123

Member level 2
Joined
Feb 19, 2012
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tezpur University
Activity points
1,672
Hi friends, i would like to store data at 10bits in the internal memory of PIC16F877A microcntrollers. So, what will be its programmes using compiler microc . Plz help me if any body have idea.
 

What kind of data do you want to store. Do you want to store int type?

Code:
[syntax = c]

unsigned address = 0x00;
unsigned short data1 = 0xFF;
unsigned short data2 = 0x02

void main() {
EEPROM_Write(address, data1);
address++;
EEPROM_Write(address, data2);
}

[/syntax]

The above code will write 00000011 11111111 to EEPROM. FF will be written at address 0x00 and 02 will be written at address 0x01
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…