Again a strange behavior of 20x2 connected to a AXE033 - try to look at this very simple program:
It is always the least significant digit that goes wrong.
Number like 20, 21, 22 shows as 2%, 2%, 2% and 55, 56 shows as 5%, 5%.
And the number 356 shows as 35%. (again % indicates garbage).
When I use Sertxd instead of the Serout commands everything looks OK.
Also nearly the same program used on a Picaxe 08M works perfectly.
The LCD start counting OK from 1 to 9, but then things goes wrong. The numbers 10, 11, 12 are shown as 1%, 1%, 1%, where % indicates garbage. That means many strange characters.#picaxe 20x2
#No_Data
#No_Table
let dirsB = %11111111
let w0 = 0
loop1:
w0 = w0 + 1
serout b.0,N2400, (254,1)
;serout 4,N2400, (254,1)
pause 30
serout b.0,N2400, (254,128,#w0)
;serout 4,N2400, (254,128,#w0)
pause 500
goto loop1
It is always the least significant digit that goes wrong.
Number like 20, 21, 22 shows as 2%, 2%, 2% and 55, 56 shows as 5%, 5%.
And the number 356 shows as 35%. (again % indicates garbage).
When I use Sertxd instead of the Serout commands everything looks OK.
Also nearly the same program used on a Picaxe 08M works perfectly.
What happens here or what do I do wrong?#picaxe 08m
#No_Data
#No_Table
let w0 = 0
loop1:
w0 = w0 + 1
serout 4,N2400, (254,1)
pause 30
serout 4,N2400, (254,128,#w0)
pause 500
goto loop1