READADC10 analogue input on Prog. editor?

fernando_g

Senior Member
I love how one can change input analogue values within the programming editor, while running the simulation.
But the counts only go as high to 255, making them useable for the READADC command. But this does not work for the READADC10 command, which requires 1024 counts.

Is there a way to do this, or is this an intrinsic limitation of the programming editor?
 

fernando_g

Senior Member
Thanks for your reply, I had attempted this already, but does not seem to work.
As seen in the attached picture, I have a wordvariable w4, which I use symbol to declare it temp10.
Then I use on line 20 a "readadc10, 4, temp10" command to read it.

However, as shown on the same image, the analogue input A4 will only go as high as 255.

On an actual Picaxe, it does work as intended, however, not on the editor.

I'm already running the latest version of the editor.

Thanks in advance for your suggestions.
 

Attachments

fernando_g

Senior Member
WOW, thank you, it indeed works! The key is using the "Generic" input box!

I somehow missed reading that particular statement in the first post.

Thanks, everyone!
 
Top