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 have an unsigned char xdata array[] that when I try to output to hyperterminal my output is non-ascii despite the fact that the input values are ascii ... when I remove the xdata keyword, I get valid output. What am I missing about xdata. I'm writing in C.
What am I missing about xdata.
You may be missing your chips requirements to actually use xdata, e.g. it may need to be enabled first. Or it may not be present at all, or there may be problems with the connection with the MCU (if your xdata memory is external).
Cross-posted: www.8052.com/.../164866
As it turns out the XRAM feature needed to be enabled in Keil's START_AD.A51 file. XRAMEN EQU 1