while(1) { Wait1ms(1000); printf("sdfa dfa sdfsd f dasf sdf ef w feawfwaf aea sf dsf af ew fwe \r\n"); if (PIR1bits.ADIF) { int aa = ADRESH; int bb = ADRESL; printf("now"); PIR1bits.ADIF = 0; } else { //ADCON0bits.GO = 1; }
}
有問題版: while(1) { Wait1ms(1000); printf("sdfa dfa sdfsd f dasf sdf ef w feawfwaf aea sf dsf af ew fwe \r\n"); if (PIR1bits.ADIF) { int aa = ADRESH; int bb = ADRESL; //printf("now"); PIR1bits.ADIF = 0; } else { //ADCON0bits.GO = 1; }