//参考一下 #define RINC PD0 //INC #define RUD PD1 //U/D //复位数字电位器****************************************************** void RSTDCP(void)//使用X9C104 { uchar i; PORTD|=_BV(RINC); _delay_us(1); //INC拉高 PORTD&=~_BV(RUD);