Hi,
Sorry for the mistake. Here is the question again:
I need to use 89C52 timer2 counter function. However, when I use the timer2, I cannot use printf function to debug my program, that is, no display output. However, printf function works fine for timer0 and timer1 function.
How I can use printf within the timer2 program?
Thanks
Ed
I wrote timer0, timer1 and timer2 counter all in one program. When I invoke timer0, or timer1, I can use printf in the main program and the ISR. However, when I invoke timer2, I cannot use the printf in the ISR and the main program. System not hang, but just ignore to display.
Any idea?
I posted are you trying to do a prinf in an ISR?, that does not work
you reply I cannot use the printf in the ISR
what's the issue?
Erik