How do printf with hyper terminal (COM2) my code is bad !!!
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!
Beware. Early versions of hyperterminal were not allways fully "functional". Next, be sure that you have set a valid baudrate for the 8051. You can check the possible baudrates at http://www.keil.com/c51/baudrate.asp Jon
Early versions of hyperterminal were not allways fully "functional". that's the polite way of putting it ;-) IMO, hypoterminal is more trouble than it's worth.
That's why some brite individual here copied the terminal program from Windows 3.1 and used that!!! Jon
A very sensible chap, I'd say!