Quote Originally Posted by mackrackit View Post
Code:
include "bs2defs.bas"  'DO NOT NEED
			--- Yes needed unless he manually define 
			    the value of N9600
define OSC 40
ADCON1 = 7 ' Set PORTA and PORTE to digital
LCD var PortA.2
high LCD                     'DO NOT DO THIS
		             --- Yes do it for true mode unless 
			        the first character might be screwed up.  
			        with N9600, use LOW instead.  Not
                                a bad idea to add a few mSec delay after
And you ADCON1 setting is false, the way you have set it gives...
AN<12:8> digital
AN<7:0> analog

so you want to open the datasheet section 19.0, register 19-2, pdf page 230 and use
ADCON1=$0F
<hr>
In case it doesn't work, there's some missing information here... configuration fuses, crystal speed etc etc (yeah i know 40Mhz is the end results... but PLL or not etc etc).... you know all annoying stuff to post but how much useful for us