Hi all! A picaxe newbie question.....
I have a program below where I believe it not to be running due to the size of the compution exceeding a word length of 65535. Does picaxe reject program computions larger than 65535 or it only the word storage length? Any thoughts would be appreciated.....
;Pulsin 10-800usec pwmduty 1-2 ms @61hz
symbol val_1 = w0
symbol on_time =w1
symbol val_2 = w2
symbol val_3 = w3
pwmout pwmdiv64, c.2, 255, 64 ;Picaxe 08m2 wizard minimum 61Hz ;start pwm duty cycle at 64 or 6.3% of 1024
do
Pulsin c.3 ,1,val_1 '(1 unit@64mhz = .625us)
on_time = val_1 * 5900/79 + 102400 * 5/ 8 /1000 ; (.625 is equivalent to 5/8) ; (Computations and Variables to large in this equation I believe?)
pwmduty c.2,on_time
pause 1000
loop
I have a program below where I believe it not to be running due to the size of the compution exceeding a word length of 65535. Does picaxe reject program computions larger than 65535 or it only the word storage length? Any thoughts would be appreciated.....
;Pulsin 10-800usec pwmduty 1-2 ms @61hz
symbol val_1 = w0
symbol on_time =w1
symbol val_2 = w2
symbol val_3 = w3
pwmout pwmdiv64, c.2, 255, 64 ;Picaxe 08m2 wizard minimum 61Hz ;start pwm duty cycle at 64 or 6.3% of 1024
do
Pulsin c.3 ,1,val_1 '(1 unit@64mhz = .625us)
on_time = val_1 * 5900/79 + 102400 * 5/ 8 /1000 ; (.625 is equivalent to 5/8) ; (Computations and Variables to large in this equation I believe?)
pwmduty c.2,on_time
pause 1000
loop