ADC1L和ADC1H老是ff,为啥? void ADC1_Init() { char data SFRPAGE_SAVE = SFRPAGE; SFRPAGE = 0x00; AMX0SL=0x00; SFRPAGE = 0x01; REF1CN=0x03; ADC1CF=0x00; ADC1CN=0x80; SFRPAGE = SFRPAGE_SAVE; } void ADC1_Cover (void) { char data SFRPAGE_SAVE = SFRPAGE; SFRPAGE = 0x01; Delay_ms(1); AD1INT = 0; AD1BUSY = 1; while (!AD1INT); result1 = ADC1H; result2 = ADC1L; SFRPAGE = SFRPAGE_SAVE; } |