Still cannot get anything to work with this PIC18f4523.

My code is (at the moment...):

DEFINE OSC 8
OSCCON = %01110000
ADCON0 = %00000000
ADCON1 = %00001111
CMCON = %00000111
TRISE=0
TRISD=0
PORTE.0 = 1
PORTD.2 = 1

I have tried various different things all day but I still cannot get any output.

I cannot try the code Brian supplied as it was for a different PIC (well, I did try it but it did not compile with the @__... lines in place, once I'd rem'd them out it programmed fine but still did not work). I can't use a 18F2320 as this has not got enough pins for the final project I want to use this pic for, and ideally I would like at least 1 12 bit adc, preferably 2.