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

Printf problem

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...

Parents
  • 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.

Reply
  • 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.

Children