0
5
46
504
409
211
void Adc_Init(void) { TRISA |= 0x02; // RA1设置为输入 ANCON0bits.ANSEL1 = 1; // RA1设置值模拟信号 ADCON2bits.ADFM = 1; // 右对齐 ADCON2bits.ACQT = 1; // Acquisition time 7 = 20TAD 2 = 4TAD 1=2...