Hi All, I am using Winbond W77IE58 chip. When i am using xdata variable as global variable, i am getting some junk data. (i.e) I have declared a char array unsigned char xdata test[] = "TEST CHARACTERS" as global variable. Then when, i am trying to send the same data to the serial port, i am not getting the same data. It is giving different data. If i removed xdata, then im getting correct data. But if i declare some array as local xdata variable, the iam getting correct data on the serial port. Only if i declared as global varible it is giving some different data. I have enabled the DME0 bit also to enable on-chip XRAM. Thanks in advance.
hai, when iam using both on chip RAM and XRAM global variables which are stored in RAM are gettining reset to null value as soon as i move to another function from main. regads ratna.