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.

Urgent Quistion about the EEPROM in PIC 16F84A

Status
Not open for further replies.

ahmad_abdulghany

Advanced Member level 4
Joined
Apr 12, 2005
Messages
1,206
Helped
102
Reputation
206
Reaction score
22
Trophy points
1,318
Location
San Jose, California, USA
Activity points
11,769
pic16f84 write eeprom address

Assalamo Alaykom..
Please if anyone knows the addresses that are available as an EEPROM space in the PIC 16F84A , please tell me what are them ..
i.e. i need to know the starting EEPROM address and the end Address where i can read and write unvolatile data in them ..

i hope you can understand me .. and can answer me also ..
 

Salam Ahmad

If yu are using PICBasic Pro, then you can directly access the eeprom, DATA command is used to write eeprom at programing time, READ & WRITE are used to access eeprom while PIC is operating.

If you need further help in PICBasic Pro, then I am the man ;)
 

if r a new user and avoid any hassel, i will ask u to hav a look at the mikroeletroniaka compilers, thou they are demo as the limitation is 2k hex its fair enough to program a 16f84a .,.,

**broken link removed**

regards.
 

thank you for your help ..
but there is no time to learn new language now.. i use assembly language .. i know you may say that it is from the old ages .. but it is my study in collage not my hoppy .. so if you can help directly in assembly language .. please do .. and then i promize that i will learn BASIC and C and every other languages in shaa allah :)
 

Salam ya sokkar

You have to learn PICBasic Pro, and you know that I promised you to help when you try to learn it, any way, assembly is not from old ages, as we were taking yesterday about PCB manufacturing, I told you that hand drawing is from old ages, while assembly is doing things the hard way, but perfect and accurate way.

Salam ya 7elo
 

hi

first address:00
end address:63

so you have 64 byte eeprom

you can simply write to it with :

WRITE 5, <variable>
that put your variable in the fifth location of eeprom

and you can simply read from it with :

read 10, <variable>

that put the tenth location number of eeprom into your variable.

as you guess 5 and 10 were example. you can put any address from 0 to 63.

Assalamo Alaykom ya Akhavai.
 

If you are wanting to do this in assembly with MPLAB you do the following:

Code:
org 0x2100              ;location 0 in eeprom, valid up to 0x213f for PIC16f84
de "My EEPROM data", 0, 0x01, D'2', B'00000011'

This will tell the programmer to write these values to EEPROM when you burn the chip.

If you're interested in writing and reading EEPROM from within a program, you need to read the data sheet in section 3. Valid addresses are 0 to 63 (0x3F). Follow the sequence in the datasheet. I also have EEPROM assembly code for reads and writes available in an include file on my website.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top