Hello everyone,
I am using a PIC16F877A micro controller. Im using timer0 to generate a 10ms delay and I have configured the timer0 to generate a software interrupt when the delay is over. But in the mean time I want the pic to be doing nothing else. That is, I want the pic to be idle. I don't know what to do. I can't use the sleep instruction cos when I do, there is no clock generation from the oscillator and so the timer does not work while asleep.
I am aware that I can use timer1 to accomplish the same thing when it receives its clocks from an external source,because then, I can use the 'sleep' instruction.
But I would like to know if I can do the same thing using timer0. Or is there any work-around or hack?
Thank you
I am using a PIC16F877A micro controller. Im using timer0 to generate a 10ms delay and I have configured the timer0 to generate a software interrupt when the delay is over. But in the mean time I want the pic to be doing nothing else. That is, I want the pic to be idle. I don't know what to do. I can't use the sleep instruction cos when I do, there is no clock generation from the oscillator and so the timer does not work while asleep.
I am aware that I can use timer1 to accomplish the same thing when it receives its clocks from an external source,because then, I can use the 'sleep' instruction.
But I would like to know if I can do the same thing using timer0. Or is there any work-around or hack?
Thank you