Hi,
I am trying to send serout command from a 18x Picaxe and receive with serin command in a 20x2 picaxe.
this is the code in 18x Picaxe:
and this is the code that i have in my 20x2 Picaxe:
And the only thing that i can visualize with the sertx command is:
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
(...and continues)
can you help me please to figure out what's wrong?
I was waiting to see:
Result: A A
Thank you
I am trying to send serout command from a 18x Picaxe and receive with serin command in a 20x2 picaxe.
this is the code in 18x Picaxe:
Code:
main:
for b0 = 0 to 255
'-blink led to see when serout is executed
high 3
'--commands to make serout work better (without sending corrupt data)
high 2
pause 3
low 2
pause 1
serout 2,N4800, ("AA")
low 3
pause 2000
next b0
goto main
and this is the code that i have in my 20x2 Picaxe:
Code:
#No_Data
'--change frequency to 4Mhz
setfreq m4
'--set PortB as output
let dirsb = %11111111
main:
serin C.2, N4800, b0,b1
sertxd ("Result: ", 9, #b0, 9, #b1, CR, LF)
pause 20
goto main
And the only thing that i can visualize with the sertx command is:
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
Result: 0 16
(...and continues)
can you help me please to figure out what's wrong?
I was waiting to see:
Result: A A
Thank you