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.
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.
Have you tried Google?
For example using the search words "keil c51 integer promotion"?
That should tell you: - what integer promotion is. - that Keil C51 can turn on/off integer promotion - how to turn on/off integer promotion - sample generated code with integer promotion active/inactive