Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top