void main(void) {
/* put your own code here */
unsigned char AD_6result;
unsigned char AD_7result;
AD67_INIT();
// DDRB=0XFF;
// PORTB-0XFF;
for(;;){
while (!ATD0STAT2L_CCF6) {
;
}
AD_6result=ATD0DR6L ;
}
for(;;){
while (!ATD0STAT2L_CCF7) {
;
}
AD_7result=ATD0DR7L ;
}
EnableInterrupts;
for(;;) {
_FEED_COP(); /* feeds the dog */
} /* loop forever */
/* please make sure that you never leave main */
}
我想实现在AN7 和AN6出入模拟量,我给AN7接高电平AN6接低电平,正常在软件里面看到的现象不是ATD0DR6L=0;
ATD0DR7L=255;吗为啥我看到的不是呢,麻烦帮我看看啊