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.
hello again,
after i wrote my problem here, i had an idea and tried it.
so i solve this problem.
here;
i have changed the 24c02 eeprom with a 24c32 eeprom. and the codes worked.
So, i understood that i was sending the address data as a word (example: 0x0010)
After that, i corrected my codes...
Hi all!
i am using 24c02 in my project. and i have a reading problem.
for example
i send some different bytes to eeprom and read them back.
when i watch the transfer in isis i2c debugger,
whatever i sent, i always read the one that i last sent.
im sending a picture of debugging screen...
u told PIC at the head of this threat :D whatever its easy to scroll that numbers on displays. i explain sketchly. First u must have 4 output for drive 4 seven segment displays. (of course different number of outputs are usefull but easy one is this.) i called the displays as cikis0...cikis3...
here is a procedure to read from keypad. in C language.
satA...satD means the rows. and sut1...sut4 means columns.
#define satA P2_0
#define satB P2_1
#define satC P2_2
#define satD P2_3
#define sut1 P2_4
#define sut2 P2_5
#define sut3 P2_6
#define sut4 P2_7
char tus(void)
{
char don = '...
i dont know how to use that eeprom.
i did many tryings during to datasheet sayings. but any of them didnt work. or i couldnt.
is there anybody help me about codes?
First i was looking for how to store values to code memory. But i learned that writing to code memory is limited.
Than im searching how to keep my data when the power removed.
So now it is not imported for me that which memory spaces i store into.
the impoerted thing is, can the device keep a...
i looked at chapter 23 in datasheet. but, it describes; how to write or read external eeprom.
It dont help me about removing the power :D
if i remove power, all my data loses.
Thanks for helping. if u have any idea, please share.
:) But i dont have knowledge about changing it.
i copy the STARTUP.A51 file under C51/LIB. and paste under my project directory. And i add that file to my source group. i want to modify it.
my problem is: Which changings should i do.
Re: using 8051 help plss
i was trying for a week. but no step i took.
i saw many sources. and i found some helps.
Keil clears all memory spaces with the file "STARTUP.A51" when start up the device.
Somebodies told that if i modify this file as i want, keil will not clear the memory while...
Re: using 8051 help plss
this explains me the _at_ keyword also i knew .d
there are some errors course
i havent try my codes on a real at89c51rd2 chip. just in proteus up to now.
tomorrow i will try some codes at faculty's lab. on real chip. and i will shut down chip. then i will start and...
Re: using 8051 help plss
i did this. it can store 1234 to code segment. but i dont now its address. and every start up the address of unit_id[] will change.
And if i use this code, program will change the value with 1234 while starting up.
i wanna select an address and when program starting up...
Re: using 8051 help plss
Thanks for helping..
i tried ur code but the following error occured:
BISIKLET.C(14): error C274: 'byteval': absolute specifier illegal
i used some other codes.
DBYTE [0x0002] = 5; // write/read 5 in data segment into 0002h address
Oku = CBYTE [0x0002]; // read from...
i m working on a project with 8051.
my problem is how to store some datas in memory...
a passwoed for example,
i store a defult value for the password when i programming.
and i want the user can change the password.
but if the user shuts down the device or if the electricity goes.
then the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.