ADC Problem
Posted: Thu Dec 20, 2007 10:24 am
Hi,I have a problem with ADC!
Here is a picture from my flowchart
![Image](http://img184.imageshack.us/img184/5386/picflowcodema2.png)
I devined Variable ADC_Value as Byte and Input is on A0
After sample (Makro=Sample ADC), i store the high-byte and return ADC_Value (Makro= Read as Byte)
Then i check if ADC_Value is lower than 185
if yes, it puts out "high" on output A6
if no, it puts out "low" on output A6
(input in Vref+ =2V)
I set clock of the pic intern (18F1320)
and all the needed stuff is enabled ... as far as i think![Smile :)](./images/smilies/icon_smile.gif)
The simulation works, but in "the real world" nothing works...
what did i do wrong?
Here is a picture from my flowchart
![Image](http://img184.imageshack.us/img184/5386/picflowcodema2.png)
I devined Variable ADC_Value as Byte and Input is on A0
After sample (Makro=Sample ADC), i store the high-byte and return ADC_Value (Makro= Read as Byte)
Then i check if ADC_Value is lower than 185
if yes, it puts out "high" on output A6
if no, it puts out "low" on output A6
(input in Vref+ =2V)
I set clock of the pic intern (18F1320)
and all the needed stuff is enabled ... as far as i think
![Smile :)](./images/smilies/icon_smile.gif)
The simulation works, but in "the real world" nothing works...
what did i do wrong?