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() function for debugging process

Hello!
I wanted to use printf() function for debugging my project. I read the description about it but couldn't understand it, can u guys help me use it? i know that it prints the data in the "printf() viewer" btw i am using keil c uvison 4 and 89252.

p.s - please reply soon, it is for my competition and i am stuck with the coding.

Parents
  • It is often better to use a couple of I/O pins to drive LEDs.

    The advantage with that is that you can toggle a LED while running your program in real-time speed. Serial data means the processor have to do lots of extra work to handle your printf().

    In this case, you have problems with keyboard scanning - but keyboard scanning requires debounce handling, something that is very much affected by the execution speed.

    Much problems can be handled with just 2-4 LED and a digital oscilloscope.

Reply
  • It is often better to use a couple of I/O pins to drive LEDs.

    The advantage with that is that you can toggle a LED while running your program in real-time speed. Serial data means the processor have to do lots of extra work to handle your printf().

    In this case, you have problems with keyboard scanning - but keyboard scanning requires debounce handling, something that is very much affected by the execution speed.

    Much problems can be handled with just 2-4 LED and a digital oscilloscope.

Children