ADC on 08M

chrispbrown2255

New Member
Hi All,
I've still got a few 08M chips kicking around and am trying a new project. The code is simple, but I can't get it to work in simulation.
I've not tried to build the circuit yet, but am puzzled as to why it wont work in simulation.

Code:
# picaxe 08M


main:

readadc10 4,w1
pwmout 2,255,w1
pause 50
goto main
 

nick12ab

Senior Member
For readadc10 you should set the input level with the Generic thingy in the simulator at the bottom of the dialog that shows the PICAXE.
 

chrispbrown2255

New Member
Thanks guys, I didn't realise it was the 'generic thingy'. I was trying to use the A1,A2,A3.
Once I got it onto my chip it worked straight away.
 
Top