Hacking ADC_to_VGA_millivolts
rjo__
Posts: 2,114
in Propeller 2
We are going to see a lot of "So where do I start?" type questions... my answer is always a little different. The P1 was very hackable... the P2 might become hacking nervana. Step 1 find a piece of code that does most of what you don't know how to do. Narrow it down to a couple of completely opaque sections and then ask a few questions.
For example:
I want to use ADC_to_VGA_millivolts but it is set up for normal 3V for vio,gio,pio,... and I need these set to 2.0 volts. How would I do that?
Then you wait until the sun comes up in Australia....
Thanks guys,
Rich
For example:
I want to use ADC_to_VGA_millivolts but it is set up for normal 3V for vio,gio,pio,... and I need these set to 2.0 volts. How would I do that?
Then you wait until the sun comes up in Australia....
Thanks guys,
Rich
Comments
Well, the numerical input range is equivalent to about 5 volts (-0.85 to 4.15). There is no 2 Volt range. I'm not sure what you're really wanting.
The analogue input voltage ranges are set by: Those are predefine mode bits for WRPIN. Documented in the Spin2 manual under ADC Input Modes - https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/
More details of their meaning - https://forums.parallax.com/discussion/comment/1452036/#Comment_1452036
EDIT: Also in the hardware doc under Low-level Pin Control - https://docs.google.com/document/d/1gn6oaT5Ib7CytvlZHacmrSbVBJsD9t_-kmvjd7nUR6o/
I have a whole bunch of misconceptions... I think we just found another one.
So, what to do?
I have a 2volt signal. Is there a way to level shift it without adding a bunch of noise?
Thanks,
Rich
Thanks,
Rich