Hello all,

I am having a devil of a time getting my SERIN to work with a 12F629. I connected the RS232 pin2 with a 1k resistor connected to pin7 of the 629, RS232 pin 3 with a 22.1k resistor to pin 6 of the 629, and RS232 pin 5 to pin8 of the 629. I am using a modified serqual PBP example program that writes Tom and Jerry to hyperterm. The output portion works fine... The input I keep banging my head on. I cannot get past the input.. I modified the original to turn off analog stuff gleaned from the archives. Also used a constant to load the pin number and directly set the port number. Any help would be appreciated..

George


' SERIN Command w/ Qualifiers
'
' "Crude" serial filter for C Style Comments

INCLUDE "modedefs.bas"
TRISIO.0 = 0
TRISIO.1 = 1
CMCON = 7
OPTION_REG.7 = 0
VRCON = 0

SO CON 0
SI CON 1
B0 VAR BYTE

SerOut 0,N2400,["TOM and JERRY",$D,$A]

wait1: SerIn SI,N2400,["//"],B0
SerOut 0,N2400,["Serial In RCVD",$D,$A]

loop: SerOut SO,N2400,[B0]
IF B0 = 13 Then wait1
SerIn SI,N2400,B0
GoTo loop