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

How do printf with hyper terminal (COM2)
my code is bad !!!

Parents
  • You are correct: you cannot do printf with hyperterminal - hyperterminal does not understand 'C' source code!

    I presume you mean that you've used printf in your 8051, which is connected via a serial link to your PC's COM2 and thence hyperterminal.

    Are you sure that you have hyperterminal correctly configured & connected - port, baud rate, parity, flow control, etc, etc?

    Do you have something else (eg, a modem) to check that your hyperterminal is actually working correctly with your COM2?

    Are you sure your cabling is all correct?

    Have you written the correct serial drivers for your 8051, and correctly configured baud rate, etc, etc?

    If you put a scope on your serial link, can you see anything happening?

    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    please clarify the question!

Reply
  • You are correct: you cannot do printf with hyperterminal - hyperterminal does not understand 'C' source code!

    I presume you mean that you've used printf in your 8051, which is connected via a serial link to your PC's COM2 and thence hyperterminal.

    Are you sure that you have hyperterminal correctly configured & connected - port, baud rate, parity, flow control, etc, etc?

    Do you have something else (eg, a modem) to check that your hyperterminal is actually working correctly with your COM2?

    Are you sure your cabling is all correct?

    Have you written the correct serial drivers for your 8051, and correctly configured baud rate, etc, etc?

    If you put a scope on your serial link, can you see anything happening?

    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    etc?
    please clarify the question!

Children