Hi friends,
I am using timer 0 & timer 2 interrupts for functionality and printf functions also am using to display the status .... (for printf statement Timer 1 using)some times that printf function skipped....but the fuctionality working fine.... why this is happening???? plz help me...
I would take issue with any sweeping statement like that.
Well, an answer should only be that much cleverer than the question. Some questions really need rule-of-thumb, generalized answers, if only because the person asking doesn't have the mental framework to understand the full-fledged, all-special-cases-mentioned-and-covered textbook answer.
The question at hand IMHO is well inside that category. For the time being, all the OP needs to know that he shouldn't do CPU-intensive stuff like printf() in an ISR, period.
By the time he knows enough to be able to handle the consequences of violating that rule, he'll probably also know that people with enough skill can violate it.
Indeed - which is why I prefixed my answer with, "Basically, ..."
I'd still rather see an answer that admits the possibilility that it can be done successfully. Anything less is, I feel, misleading.