Thank you. That works perfectly. But as far as i can tell the only diff with my original code is not setting the trisc directions and not including the

DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 20h

lines. Now which of these was causing the problem and why?

Thank you