Here is a picture from my flowchart

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

The simulation works, but in "the real world" nothing works...
what did i do wrong?