Hi, Im fairly new to the picaxe and the programming world in general. Ive been tinkering around with a 14M and have run in to a minor problem I cant see to get a leg over. I d appreciate any help.
I wrote a very simple little program, counts # of pulses over 5 sec and display the PPM and COUNT. Problem is the words PPM and COUNT display fine on my lcd but the actual w3 and w4 data values are displayed as random characters. Heres the code
<code>
main:
count 2, 5000, w2
let w3=w2*12
let w4=w4+w2
debug
serout 0,T2400,(254,1)
pause 30
serout 0,T2400,(254,128,"PPM =",#w3)
pause 30
serout 0,T2400,(254,192,"Count =",#w4)
pause 3000
goto main
<code>
Again it all seems to work fine except the data display. I thank you in advance for any help I can get.
I wrote a very simple little program, counts # of pulses over 5 sec and display the PPM and COUNT. Problem is the words PPM and COUNT display fine on my lcd but the actual w3 and w4 data values are displayed as random characters. Heres the code
<code>
main:
count 2, 5000, w2
let w3=w2*12
let w4=w4+w2
debug
serout 0,T2400,(254,1)
pause 30
serout 0,T2400,(254,128,"PPM =",#w3)
pause 30
serout 0,T2400,(254,192,"Count =",#w4)
pause 3000
goto main
<code>
Again it all seems to work fine except the data display. I thank you in advance for any help I can get.