1 slave 1 master 1 MAX232 1 problem ?
hi everybody i am trying to get numbers from PC in my circuit i have 1 slave 1 master and a MAX232 i can communicate pic to pic well there is no problem i can sent numbers to pc it is well too but when i am trying to get numbers from PC i have problem. i Try these
test var byte
TEST =0
loop:
hserin [test]
if test=4 then goto msj
if test=5 then goto msj2
msj:
hserout ["msj alındı",13,10]
goto loop
msj2:
hserout ["tamamdır",13,10]
goto loop
end
in here i try everything but when i sent the msj from pc i allways get "msj alındı" it means i cant use comparision.I know i can sent number from pc coz i try this code too.
test var byte
TEST =0
loop:
hserin [test]
hserout [#test,13,10]
goto loop
end
it send me back what i sent that means no circuit problem i have programming problem can anybody show me my problem and solition.?
Asking is not a shame but not learning is a SHAME!!!
Bookmarks