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
  • Basically, slow IO (eg, serial port) is just something that you should not do in any ISR!

    I would take issue with any sweeping statement like that. A more reasonable suggestion would be that you should not do so unless you are sure you know what you are doing, although one might take the view that unless you know what you are doing you shouldn't be writing code at all.

    Interestingly, and I'm sure this wasn't the intent, your statement does entirely rule out using interrupt driven serial comms.

Reply
  • Basically, slow IO (eg, serial port) is just something that you should not do in any ISR!

    I would take issue with any sweeping statement like that. A more reasonable suggestion would be that you should not do so unless you are sure you know what you are doing, although one might take the view that unless you know what you are doing you shouldn't be writing code at all.

    Interestingly, and I'm sure this wasn't the intent, your statement does entirely rule out using interrupt driven serial comms.

Children