Ah thanks for pointing that out. I was using a max232 with 'n' and not 't' :P
Working code:
Is a max232 needed? I haven't had much success without it in the past but I might consider trying to lose it since space is a bit tight in the dongle case.Code:Include "modedefs.bas" OSCCON = %01100000 'set for 4mhz internal CMCON0 = 7 'TURN COMPARITORS OFF ANSEL = %00000000 'Set A/D OFF ADCON0 = %00000000 'Analog converter OFF rcx var GPIO.4 'input pin tcx var GPIO.1 'output pin stat VAR byte Main: serin rcx,t2400,STAT pause 100 SEROUT tcx,t2400,[stat] GOTO Main END




Bookmarks