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
  • With interrupt-driven serial comms, all one normally does in the ISR is to load and/or unload the SBUF (or equivalent) - the actual slow IO is handled by the hardware between interrupts.

    Yes, I do realise that. I guess you really meant to say that slow IO (eg. RS232) shouldn't be done from an interrupt but fast IO (eg. RS232) is ok?

Reply
  • With interrupt-driven serial comms, all one normally does in the ISR is to load and/or unload the SBUF (or equivalent) - the actual slow IO is handled by the hardware between interrupts.

    Yes, I do realise that. I guess you really meant to say that slow IO (eg. RS232) shouldn't be done from an interrupt but fast IO (eg. RS232) is ok?

Children
No data