Hi, I'm using Aduc842 controller. Application is developed using keil-uVission2, and the hex file is downloaded using WSD. I'm using hyper terminal (RS232 protocol) for communicating between the controller and the PC for testing purpose. Problem is, ever time I declare a variable as xdata, data seems to be corrupted (care is take that the external memory is not overflowed). I would be glad to know what care is to be taken to avoid data corruption while using xdata.
Does your part have "internal xdata"? That is, some extra RAM on the chip that can map to the xdata space, as well as possibly a physically separate external RAM? If so, have you carefully read the data sheet and configured the part so that it uses the proper RAM? Manufacturers are fond of putting in this kind of feature and leaving obscure footnotes in the data sheet as to how to enable it. Have you checked the CKCON configuration to be sure the MOVX timing is appropriate for your RAM? Are you sure your software isn't really overwriting its memory?