For the 08M;
READADC10
Manual2 page 128:- readadc10 channel,wordvariable (refers to channel here - usually pin)
Manual2 page 126 tells you which pins can be used - 1,2 or 4 for the 08M
readadc10 1,var
var is variable - in this case a word variable. Lets use w1 for no particular reason (except w0 has some additional featues so lets keep that in reserve).
so this line becomes;
readadc10 1,w1
pwmout
Again pwm only works on certain pins
Manual2 page 123 tells you that for the 08M only pin2 is supported.
pwmout pin,period,duty cycles
Until you have an understanding of how this works, it's best to use the nifty pwm calculator kindly supplied by Rev-Ed right there in the programmer!
Picaxe / wizards / pwmout - make sure the right chip is slected (if not go to View Options and click on 08M) and the right clock speed (4Mhz unless you've set it to something else).
In the wizard, click calculate, copy, yes, close
you will now have;
pwmout 2 , 99, 200
in your program!
The last number (200) is the duty and can be substituted by a variable - w1
pwmout 2, 99, w1
that's it.
Now, the value read into w1 by readadc10, will be the value used to set the duty in pwmout.