GARBAGE DATA IN XDATA VARIABLE

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.

Parents
  • 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.

Reply
  • 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.

Children
More questions in this forum