varunme
Advanced Member level 3
for setting port A and E as digital and disable PSP, is the below code enough, or we need any further declaration ?
Code:
ADCON1 = 0x07 ; //Disable all analogs
CMCON = 7; //Disable all comparators
TRISE.f4 = 0; //PSP off
trisa=0xff; // porta as input
trise=0xff; // porte as input
Last edited: