Thanks for your response um using pic 16f877a so portb and c is away from adc and comparator section, for the delay i put it but how it sends "A" one time for each button press if um pressing the button more than the delay time, for the CONFIG/ENDCONFIG block it makes error at the end of the compiling um using mikroCode studio PBP3
Here's The Edit I did using code tags

Sender Code
Code:
#CONFIG     
            
#endconfig

Define OSC 8

portc=255
char var byte

' Main program loop
start:

if portc.1==0 then       'button pressed
char = "A"
Serout portb.0, 2,[char]
pause 500
endif

Goto start
End

Recieve Code

Code:
'Reciever Code
#CONFIG
#endconfig

Define OSC 8

char var byte
' Main program loop
start:

Serin portb.0,2,char 
pause 500
if (char == "A" ) then
high portb.1
pause 500
low portb.1
pause 500
endif
Goto start
End