Mus.me, all the ascii from 0 to 31 will give you wierd symboles, and 32 will show nothing because is space. This is the reason why you use the notation DEC before the variable to Tx....... But still gettin wiered symboles when i send from pic to the pc . I want to send dec and ascii but i donno how
If you want to receive both decimal and ascii you can Tx twice the variable
Serout2 SO,390,[DEC B0, " ", B0,13,10]
or you can select in which format to send out the variable depending on its value
IF B0<33 Then
Serout2 SO,390,[DEC B0,13,10]
ELSE
Serout2 SO,390,[B0,13,10]
ENDIF
Al.
All progress began with an idea
thank you very much aratti for ur help .i tryed it whith baud 16780 it works good i send from pc to pc and from pic to pc its the same i get using serial communicator of microcode studio .i will try with transmeter and receiver bcz i tryed it using ir it does error .got a amall robot to test likw remote control than i carry on have agreat day ARATTI ...
HELLO
HI ARATTI,
I DID THIS CODE IT WORKS GREAT THNK U FOR HELP
NOW IM TRYING INFRARED BUT STILL NOT WORKIN I KNOW IR RUNS ON 40KHZ, AND IVE GOT TRANSMITTER AND RECEIVER I FOUND THEM IN PROBASIC STATION METEO WAS SENDING FROM OUTSIDE TO THE CLOCK IN MY ROOM I TOOK THEM OFF BUT AINT WORKIN .Code:SYNC CON "A" SO con 1 SI con 0 B0 var WORD B0 = 0 MAIN: Serin2 SI,16780,10,MAIN,[WAIT(SYNC), DEC4 B0] SerOUT2 SO,16780,["OK MUS ..! ",DEC4 B0] GOTO MAIN
REGARDS
Last edited by Mus.me; - 1st December 2009 at 21:46.
HELLO
Bookmarks