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
Thanks for all info.
I am not intent to use printf in timer2 ISR but in the main to debug my program.
Any method to get this done or forget printf in timer2 environment?
If you want to use printf() in a configuration where you don't have a baudrate generator, then you have to bit-blit some I/O pins to emulate the UART. Not funny at all. And really dreadful if you need to be able to receive data too.