ADC works .
I connected the Vcc of pic to the portA.0 and it shows 1023 .
After that ; i tried
Code:
; Initialize your hardware and LCD first.

DEFINE ADC_BITS 8 ' Number of bits in ADCIN result
ADCON1.7 = 1 ' Right Justify AD result

INCLUDE "LCDbar_INC.bas" ' Include the BARgraph routines

Value VAR WORD ' Must be a WORD even though AD is 8bit

LCDOUT $FE, 1 ' Clear Screen

Loop1:
ADCIN 0, Value
LCDOUT $FE,2,"Value = ",DEC Value," "
; syntax- BARgraph Value, Row, Col, Width, Range, Style
@ BARgraph _Value, 2, 0, 16, 255, lines
GOTO Loop1
The bars are ok , don't flickr
but the word "value" always flickering , why ?
And whene there is no input to the portA.0 , the value becomes 276 and there are still full bars ? (I know there are too many questions , but i want to learn )

It seems , the problem is my circuit output
By the way , as i said before , whene there is 5V , i don't want any bars , there must be full bars at 3.9V
How can i change this code to run like for my project or there must be a different code ?
Code:
Loop1:
    ADCIN  0, ham
    LCDOUT $FE,2,"Value = ",DEC ham,"   "
    ; syntax- BARgraph   Value, Row, Col, Width, Range, Style
    @         BARgraph  _ham,   2,   0,    16,   255,  lines
    
Goto Loop1
Thank you very much again.