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.
If I use PDATA for my Stack. will any of my XDATA overlap? or is Keil smart enough to prevent that? Does it mean the RAM(XDATA) I have is 2048 - 256 for pdata?
MCU: AT89C51CC03 Memory Model: Compact
PBPSTACK EQU 1 PBPSTACKTOP EQU 0xFF +1
Thanks Al,
I understand at little more know. If I do have problem I will just redefine it. Moving everything back to standard stack and if I need PDATA just assigning it. I did do some benchmarks and when I made the change to PDATA it did show some and improvement. But my orignal question has not really been asnwered. e.g.
PDATA char data[255]; XDATA char data2[255];
Do these two array go to the same memory location?
I think not - but can't be sure.
Similarly, I think, IDATA and DATA don't overlap (as far as C51 is concerned).
You should be able to see this from the Map file?
Map File? I am no genius on keil, is there a map file?
aka "Linker Listing file"
Is this possible to transmit data in decimal through serial port because according to my knowledge serial port can transmits only ASCII characters but it can receive decimal/binary data if there is any method to transmit decimal/binary data using it please reply
Regards
Kingky
PDATA and XDATA
on new subject styart a new thread
Erik
you may notice that ASCII characters include 0x00 to 0xFF, not only visible characters. so you can send any 8bit data use "send char" or simlar fuction, but don't use "send string", beacause string is 0x00 as end.
in many application, for easy(clearly) view the data in terminal, add a 0x30 for BCD number