This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memory organisaion problems

how to organize memory to avoid erratic behaivour of code during runtime?

I am accumulating input, averaging it and then calculating address from input to fetch data from multi-dimensional array in code memory.
Input is given to a particular channel, i hav given selection for type of sensor at input.
For a particular selection of sensor, I need to process the averaged input and fetch data from code array.
My code is logically correct but it is skipped during runtime after input is varied beyond a particular value, so the display freezes, but program resumes if i change the sensor type.
This erratic behaivour is observed for a particular selection of sensor type.