I set the following setting....
The settings in the dialog box indicate a 9600 BAUD 8-N-1 No Flow serial port setup.
These values represent a typical serial port initialization and would be an acceptable if the same values are used in the initialization of your PIC's UART.
and i checked the box for eco.
When i type a character it does eco the character (without shorting the tx/rx pins). Is it ok?
or i should not check the eco box. then short the pins and it should eco now.
The "echo" feature has no effect on the data sent through the serial port.
The feature simply repeats or echos your keystrokes locally without regard to what is being received by the serial connection from your PIC.
Which is why the character is displayed in the terminal window regardless of whether a loop back, shorting the tx/rx pins, exists.
If you disable the "echo" feature and implement a loop back condition, shorting the tx/rx pins, you should see only a single occurrence of character for each keystroke.
How the terminal emulation handles the "echo" feature is largely program dependent. I personally prefer PuTTY over Hyperterminal, which by default uses an auto "echo" feature, in effect automatically attempting to deduce whether or not local echo is appropriate for the current session of which you are working.
PuTTY Download Page
PuTTY also offers several other features which Hyperterminal lacks and above all it's Open Source and Free.
BigDog