burrow
Full Member level 2
- Joined
- Dec 15, 2014
- Messages
- 147
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 18
- Activity points
- 1,148
Hai,
i had posted a similar question some time back, My program is really lengthy, thats why iam not pasting it here.
Iam using mikroc for coding, and my mcu is pic18f4520.
problem is that pic assigns wrong values to certain variables or in other words the value of variable changes from its intended value,
Suppose say during run time i change value in variable A to 10. and it stores 10 and displays it, but after going through some other part of code which has no relation with this variable A, the value of A changes.
When i alter the code and modify it to fix the issue ( by assigning some extra variables and all ) then the issue shifts to different part of a code.
i am using interrupts, but iam not using these variables directly in the interrupts.
but in main function i am reading the values of variables used inside interrupts.
i had posted a similar question some time back, My program is really lengthy, thats why iam not pasting it here.
Iam using mikroc for coding, and my mcu is pic18f4520.
problem is that pic assigns wrong values to certain variables or in other words the value of variable changes from its intended value,
Suppose say during run time i change value in variable A to 10. and it stores 10 and displays it, but after going through some other part of code which has no relation with this variable A, the value of A changes.
When i alter the code and modify it to fix the issue ( by assigning some extra variables and all ) then the issue shifts to different part of a code.
i am using interrupts, but iam not using these variables directly in the interrupts.
but in main function i am reading the values of variables used inside interrupts.