hi, i m doing my fyp title serial link communication, now i m using pic16f84 as my controller, i connect my pic to RS232(MAX232CPE-the chip i use), then connect it to computer. now i m using the command as following
__________________________________________________ ______________
Include "modedefs.bas" 'to enable the mode option for n9600
trisa = %00010
TRISB = %00000000
symbol sec = 1000
d0 var byte
s_out var porta.0 'set pin no as output pin
s_in var porta.1 'set pin no as input pin
led var portb.4
loop:
Serin s_in, n9600, 1000, no_data, ("x"), [d0]
serout s_out, n9600, [d0]
goto loop
no_data:
high led
pause sec
goto loop
end
__________________________________________________ ______________
how come i dun c the led light and i dun get any data from the pic...
p/s: how can i know whether my code is successfully sent? any idea to do tat?
Bookmarks