Quote Originally Posted by mbw123
keithdoxey,

what if I wanted to change

"hserout [PORTSTATE]"

to

"hserout [WAIT("~"),PORTSTATE)"

Would that work with the same code?

Thank you.

-Mike
Hi Mike, sorry for the delay replying, been on holiday for a few days

The above should be "Hserout["~",PORTSTATE]

Wait is only applicable for Hserin.

In your previous post, instead of all the input and output commands just use the following

Transmitter

TRISA = %11111111 ' all pins as inputs

Receiver

TRISA = %11110000 ' A3-A0 as outputs
PORTA = 0 ' turn off all ports

HTH

Keith