Julia said:
i asked a doctor in my college about the RX pin
he told me, you don't have to set it as input port !
Initially port3 pins(which include RxD & TxD) are all HIGH after reset.
In this situation, they are available for use as input or for alternate function.
You must take care never to output directly a LOW on these two pins because it will stop them functioning. There is NO mechanism to pull high the pin, all is done using internal pull up resistors.
As long as you do not change these pins by sending a LOW to them, you are OK.
I have also checked your Timer mode/baud rate settings and they are good for 9,600bps. Are you copying them from somewhere else or you design it yourself?