sleep mode of atmega16

abhi.nagarnaik

New Member
What should be the reason for the micro-controller to execute last condition though the i/p are changing continuously. This problem occurs in some trials only & not in every trial.
 
Could you repeat that a different way? Your post does not make sense in English. What do you mean
execute last condition
and
though the i/p are changing continuously
 
I want to know that what might be the reason for the atmega 16 to execute last condition. I'm using this for certain robotic actions which is depending upon the i/p given to the atmega 16. Microcontroller is not responding sometime as per the i/p given to it. Also when i reset the microcontroller it will give the expected o/p for the same i/p condition.
 
There is a fault somewhere in your code. You should duplicate the conditions in a simulator until the fault occurs so you can determine where it's coming from.
Without a schematic and the code you're actually using we can't answer.
 
ok, and where does sleep mode apears in the story?
also, why not post the code of that "condition" ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…