Ok, here is all my code. I will change the two lines concerning serout2 and serin2 with the hardware serial ports code. Basically this program just receives the button input, outputs the serial data (to itself; it is a test circut so don't bother asking why...) and supposedly receives the data and turns on the LED. It isn't working though. Thanks for the link to the HSEROUT/HSERIN page, by the way.
CODE:
-----------------------------
INCLUDE "modedefs.bas"
Pre CON $A5
Synch CON "~"
CMCON =7
main:
if (PORTB.1 = 0) then pressed
pressed:
serout2 PORTB.2, N2400, [Pre, Synch,"1"]
serin2 PORTB.3,N2400,[WAIT(Synch),in]
if (in == "1") then
high PORTB.4
pause 250
low OPRTB.4
pause 250
endif
-----------------------
Thank you very much for your help...
-Mike
Bookmarks