can the usart port act as both input as well as output port at the same time.
The Datasheet for the particular chip in question (which you omitted to identify) will tell you that...
You seem to have gained a load of 'p's in you name...
http://www.keil.com/forum/22374