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
  • Jack Sprat has already had a post about a year ago about the increase in size when adding printf().

    The thing to rememeber if sending data from an interrupt is to try to limit the output to a single character, and making sure that the interrupt load is less than the capacity of the serial port. With a bit of careful planning, you could have the majority of interrupts able to emit a character with zero wait.

Reply
  • Jack Sprat has already had a post about a year ago about the increase in size when adding printf().

    The thing to rememeber if sending data from an interrupt is to try to limit the output to a single character, and making sure that the interrupt load is less than the capacity of the serial port. With a bit of careful planning, you could have the majority of interrupts able to emit a character with zero wait.

Children
No data