CMCON=0x07; //比较器关闭,RA0-RA3为IOCVRCON=0x00; //比较器电源关闭ADCON1=0b00000110; //AD转换关闭,AN0-AN7配置为数字IOTRISA=0xff; //PORTA定义为输入
TRISA 为0ADCON1为 00000000