Quote Originally Posted by norohs View Post
(newbe here)

Should that be High PORTB.4 and LOW PORTB.4?

I also don't see an ADCON1 being setup

Code:
if x > 000000 then
        PORTB.4 = 1
    endif
    
    if x < 000111 then
        PORTB.4 = 0  
    endif
You're correct, for my purposes, the high / low settings should be reversed. I'm trying to read up more on how the ADConverter works, to get this circuit working. There are lots of examples of using it with a LCD on RA4, but I can't find anything more.. general.

And yes - I'm sure I have the Analog version. Also, looks like you can't edit old posts, I meant to set my thresholds at 128 on both sides, but forgot to edit it before copying in. The low threshold should be set at 128, not 7.