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.
Dear All,
I am getting garbge value, in my xdata variable. I am using c8051f021 controller with internal xdata of 4K.I do not understood why such problem occurs suddenly. Whether this is because of interrupts clashing or any thing related to interrupts. Thanking you.
I am getting garbge value,
Define "garbage".
I am using c8051f021 controller with internal xdata of 4K.
Does the internal xdata need to be activated first ? Maybe your uC is trying to access external xdata memory instead of internal xdata memory and therefore reads "garbage" ?
I do not understood why such problem occurs suddenly.
Without further information about your program, any attempt at diagnosis can safely be deemed pure speculation.
Whether this is because of interrupts clashing or any thing related to interrupts.
See above.
Does the internal xdata need to be activated first ? 1) it does 2) it need be done at the very beginning of startup.a51, doing it in "top of main" bypass the initialization.
The SILabs Config program, while quite good DO make the error of allowing certaing things done in C that MUST ne in assembler and inserted to the VERY start of startup.a51.
Now I have seen someone trying to call a C function at the start to Startup, just to avoid that awful assembly IT DOES NOT WORK, if you can not insert the necessary in assembly at this point, either learn how to or go buy a broom.
Erik