Hi,
I have a pgm:
#PICAXE 28X2
#Terminal 9600
hSerSetup B115200_8,%11
hSerOut 0, ( "AT",cr )
Sertxd (hserptr,cr,lf)
do while ptr <> hSerPtr
b0 = @ptrInc
SerTxd ("RX", tab, #b0, tab, $22, b0, $22,cr,lf)
loop
which I cannot make work. I made a simpler version:
#PICAXE 28x2
#Terminal 9600
SerTxd ("Started.....",cr,lf)
hSerSetup B9600_8,%11
sertxd (hserptr,cr,lf)
main:
b0 = "A"
b1 = "B"
hserout 0,(b0,b1)
sertxd (cr,lf)
sertxd (#hserptr,cr,lf)
which produces the output:
Started.....
[00]
AB
0
The last [00] indicates that hserptr does not work - it should be 2. Should it work for hserout?
best regards
torben
I have a pgm:
#PICAXE 28X2
#Terminal 9600
hSerSetup B115200_8,%11
hSerOut 0, ( "AT",cr )
Sertxd (hserptr,cr,lf)
do while ptr <> hSerPtr
b0 = @ptrInc
SerTxd ("RX", tab, #b0, tab, $22, b0, $22,cr,lf)
loop
which I cannot make work. I made a simpler version:
#PICAXE 28x2
#Terminal 9600
SerTxd ("Started.....",cr,lf)
hSerSetup B9600_8,%11
sertxd (hserptr,cr,lf)
main:
b0 = "A"
b1 = "B"
hserout 0,(b0,b1)
sertxd (cr,lf)
sertxd (#hserptr,cr,lf)
which produces the output:
Started.....
[00]
AB
0
The last [00] indicates that hserptr does not work - it should be 2. Should it work for hserout?
best regards
torben