Hi there

I have built a circuit with a pic16f627 and a so232acp chip. The idea is to read an input and display it on hyper terminal and toggle two leds if I send a command from the pc, I am using the on board usart.
The transmitting from the pic work 100% but I can not seem to get it responding to the commands from the pc. Can anyone please help; here is the testing code I use.

INCLUDE "ANSI.INC"

CMCON = %00000111 ;Disable Comparator module's
OPTION_REG = %11010111 ;Set PIC options
INTCON = 0 ;Disable interrupts
TRISB = %00000000 ;RB7...RB0 are outputs.
TRISA = 255 ;SET PORTA AS INPUTS

DEFINE HSER_RCSTA 90h ;Set receive register to receiver enabled
DEFINE HSER_TXSTA 20h ;Set transmit regester to transmitter enabled
DEFINE HSER_BAUD 2400 ;Set baud rate
DEFINE HSER_SPBRG 25 ;Set spbrg regester




I VAR BYTE
I = 0
PORTB.6 = 1

loop:
I =0
@ ClearScr ; Clear Screen
HSEROUT ["Value of input 1:",DEC PORTA.0,10,13]

HSEROUT ["Please select a command",10,13]
HSEROUT [9,"1 = Flash leds",10,13]


HSERIN 5000,LOOP,[I]

IF I = 1 THEN
PORTB.7 = 1
PORTB.6 = 0
PAUSE 1000
PORTB.7 = 0
PORTB.6 = 1
GOTO LOOP

ELSE

GOTO LOOP

ENDIF

End