Thanks to all, Is there any way that can porta.5 be used as output?..Thanx again.