johnmobley
New Member
Ok here it goes. I have been working on a picaxe project and I have found that using a 28X1 I can do exactly what I want (the DIG command is only valid with "X1" chips). However a 28X1 is actually a lot of overkill for what I am wanting to do. Below is the code that I can use with the 28X1:
The value of w0 would actually come from a count or pulsin command and so the first line of the code above would be different, it is just for this example. When run it would break down the number stored in w0 into its individual numbers and then show 3.293 on the second line of the LCD Display. This is exactly the result that I want.
My question is, how can i do the same thing with a smaller picaxe chip that is not a "X1" chip? I know I could just use the "X1" chip but I really dont want to if I dont have to.
Code:
Let w0 = 3293
Let w1 = w0 DIG 0
Let w2 = w0 DIG 1
Let w3 = w0 DIG 2
Let w4 = w0 DIG 3
Serout 7,T2400,(254,1,254,192,#w4, ".", #w3, #w2, #w1)
My question is, how can i do the same thing with a smaller picaxe chip that is not a "X1" chip? I know I could just use the "X1" chip but I really dont want to if I dont have to.