I want to send via the serial output a string of numbers. I am constrained by the hardware to only be able to use out0. I am using the sertxd command. The device is an 08M2.
symbol tripped = pin3
main:
pause 100
if tripped = 0 then goto main
pause 100
if tripped = 0 then goto main
let b1 = 1
sertxd(#b1)
goto main
The first portion is debounce code.
Manual 2 states:
The # symbol allows ASCII output. Therefore #b1, when b1 contains the data
126, will output the ascii characters “1” ”2” ”6” rather than the raw data 126.
The output however is read as "s". The measured binary output is 1 01110011
What am I doing wrong?
symbol tripped = pin3
main:
pause 100
if tripped = 0 then goto main
pause 100
if tripped = 0 then goto main
let b1 = 1
sertxd(#b1)
goto main
The first portion is debounce code.
Manual 2 states:
The # symbol allows ASCII output. Therefore #b1, when b1 contains the data
126, will output the ascii characters “1” ”2” ”6” rather than the raw data 126.
The output however is read as "s". The measured binary output is 1 01110011
What am I doing wrong?