Can't you just say
Code:
PortB.5 = 0
sleep
PortB.5 = 1
restart Uart etc if reqd