This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Read string from specific memory!

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.

Parents
  • 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

Reply
  • 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

Children