Check the code for slaves in this post:
http://www.picbasic.co.uk/forum/show...809#post116809
That's all I needed to do. Master TX to slave RXs, slave TXs to master RX, I think I had pull-ups at master.
I'm having a hard time with your code (sick, not feeling right).
I'd suggest making a copy of your program and strip everything except USART logic. Then post that stripped code if you have problems.
Keep it simple; talk to slave 1, wait for reply, talk to slave 2, wait for reply.
You can also use a MAX232 and listen in with your PC and see exactly what is sent. That helped me a lot.
Robert
Bookmarks