can the usart port act as both input as well as output port at the same time.
You seem to have gained a load of 'p's in you name...
http://www.keil.com/forum/22374