Have you tried [DEC b0] on both ends?
yes i try [DEC b0] but nothing changed pic recieved only first byte
To use 9600,n,8,1 with Serin2/Serout2, code should be:Code:SEROUT2 0,T9600,[DEC1 b0]
What does your program after the serin2 with the byte received? Very likely the second byte arrives when receiver is not yet ready, increase the Pause to 1000 and see if it works than reduce it gradually to the optimum.Code:SEROUT2 Pin,84,[DEC b0] SERIN2 Pin,84,[b0]
Al.
Last edited by aratti; - 5th March 2009 at 18:30.
All progress began with an idea
DEC causes numbers to be sent in ASCII format. 1 to 9 will work fine since each number will
be a single ASCII character. When you get to 10, it sends an ASCII 1 followed by an ASCII
0, which requires two bytes. DEC 100 will be 3 ASCII bytes, etc.
Try something like this;
Code:T9600 CON 84 MAIN: FOR B0=4 T0 200 SEROUT2 0,T9600,[B0] ' without modifier, sends the unformatted byte value of 4 to 200 PAUSE 10 NEXT BO SERIN2 0,T9600,[B0] ' can receive a value from 0 to 255
hi all my friends
thank you for your reply
yes Mr ARATTI it's works good with
SEROUT2 Pin,84,[DEC b0]
Pause 100
SERIN2 Pin,84,[b0]
thank you very much and thanks for Mr Bruce
Although I don't try yet his code
good luck
Bookmarks