SEROUT text versus numeric

John Chris

Senior Member
Is there any difference in the serial signals generated by the following code fragments

[
Symbol pin = 6
SEROUT pin,baudmode,("*0100P3")
]

or

[
Symbol pin = 6
b0 = 0
b1 = 100
b2 = 3
SEROUT pin,baudmode,("*",#b0,#b1,"P",#b2)
]

or

[
Symbol pin = 6
b0 = 0
b1 = 100
b2 = 3
SEROUT pin,baudmode,("*",b0,b1,"P",b2)
]

Thanks, Chris
 
Last edited by a moderator:

hippy

Ex-Staff (retired)
The first two will be the same ( numbers get converted to textual digits ) but for the last that's very much different, a single character for each of the values held in the variables will be sent and you'd have something like this sent "*ƉPþ" ( not correct, but you'll get the idea )
 
Top