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
  • In General is vague Yes But look at the topic. It appeared to me he was using printf in the timer. Then asked if he could just use SBUF. beginners may not realize why that may be bad so I added it ( and I did mean both ways.
    Are there applications where it is OK to transmit a big string from the timer interrupt at 110 baud? Maybe, but I do not think this is one of them.

    In General do as little as possible in the interrupts. In General make sure you are not doing so much you loose interrupts. And do not get so attached to those rules that you follow them when someone hands you the project that is the exception to the rule.

Reply
  • In General is vague Yes But look at the topic. It appeared to me he was using printf in the timer. Then asked if he could just use SBUF. beginners may not realize why that may be bad so I added it ( and I did mean both ways.
    Are there applications where it is OK to transmit a big string from the timer interrupt at 110 baud? Maybe, but I do not think this is one of them.

    In General do as little as possible in the interrupts. In General make sure you are not doing so much you loose interrupts. And do not get so attached to those rules that you follow them when someone hands you the project that is the exception to the rule.

Children
No data