Hello,
is it possible to write a program with the small-memory-model, to declare some variables as xdata and to declare an char array[256] of pdata?
Best regards, Stefan
yes.
Not just yes, but that's the usual way to do things.
The memory model just selects the default memory used for variables if no memory area is specified explicitly.
It's all in the Manual:
http://www.keil.com/support/man/docs/c51/c51_le_memmodels.htm
http://www.keil.com/support/man/docs/c51/c51_xc_memmodel.htm
But why does the following program not work?! When I choose "xdata" for the array "dscrc_table" in the file "crc.c", the program works properly, but with "pdata" it doesn't.
Downlooad-Link: www.fileuploadx.de/223225
Because there's a bug in your software, or Because there's a bug in your hardware, or Both of the above!
Please post your source here - taking care to follow the instructions - rather than some site laden with advertising pop-ups.
:-(
View all questions in Keil forum