Hey I've been trying to figure this out for hours now and i can't get it. I try to initialize porta as inputs but every time i use those inputs I get multiple bits lighting up. I've tried everything I've found to fix it but nothing works.
Rich (BB code):
ANSEL=0x00; //This and next line initialize PORTB to digital ANSELH=0x00; // // CM1CON0=0x07; // OSCCON=0b11110101; ADCON0=0x00; ADCON1=0x06;