We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I need function who will read string from specific memory (code, idata, xdata memory)!
It will be used for display driver, that means the main program can't see functions from dipspaly driver only main functions of display driver!
Preciously I need 3 functions: 1 for string in code, 1 for string in idata and 1 for string in xdata. Or help with existing I have - I dont know how it working.
int _wr_str_d(uint d) { int j; uchar k; _clr_scr(); kursor=7; pozicija=-1; j=0; while ((k=*(uchar idata *)(d+j))!='\0') { _wr_char(k); j+=1; } return 0; }
Code are same for 3 functions diference are in name of memory. Main program dont call function direkt. he only call DisplayHandler(int p, int n) where is p - number assigned to function, n - are parameter.
Have you looked-up "Generic Pointers" in the Manual?
http://www.keil.com/support/man/docs/c51/c51_le_genptrs.htm
plz quickly give me the following basic programmes 1. display a strings in lcd (LCD interface) 2. Analog to Digital conversion 3. Serial communication 4. keypad scanning 5. fingerprint analisys 6. sound and speech with generation and recognition 7. video interface 8. compiler design 9. i squared c for peripeherals
i am beginner in microprocessorcontrollers( starting with 8051) i expect help from others
i expect help from others
I sincerely hope this post was intended to be funny.
And what do you expect your own contribution to be?
My guess:
1. Find a forum that's distantly related to the topic. 2. Hijack a thread on a totally different topic. 3. Demand a short answer to questions that are usually treated in large books and university/college classes.
That's quite a contribution, isn't it ?
Yes I look at him but is not what i looking!
In that case, you'd better explain why it's not suitable!
How can anyone suggest a better solution if they don't know what's wrong the previous suggestion?!
So you do not want to use a generic pointer?
You want to use memory specific pointers then?
uchar *aPointer; //generic pointer uchar idata *iPointr; //idata pointer uchar xdata *xPointr; //xdata pointer uchar pdata *pPointr; //pdata pointer
Like that?
plz quickly give me the following basic programmes .......
you will find someone to "quickly give you the following basic programmes" at www.standardics.nxp.com/.../
Erik
But then you're back to having to write a separate function for each memory area, aren't you?
Surely, you either need to be memory-specific, or you need to be generic? You can't have it both ways!