程序问题问下这个CCAP1H在这个程序段中的作用,这段看不大懂,跪求大神
{
CCAP1H = u8i;
LedDisplay(300);
u8v = TestVoltage();
putchar(u8v/100+'0');
u8v %= 100;
putchar(u8v/10+'0');
putchar(u8v%10+'0');
putchar('\r');
putchar('\n');
} while (u8i--);
EA=1;
while (1)
{
#if DEBUG == 1
uint8_t u8v;
CHARGE_DO = 1;
LedDisplay(2000);
u8i=255;
do //?
{ //?
CCAP1H = u8i; //?
LedDisplay(300); //?
u8v = TestVoltage(); //?
putchar(u8v/100+'0'); //?
u8v %= 100; //?
putchar(u8v/10+'0'); //?
putchar(u8v%10+'0'); //?
putchar('\r'); //?
putchar('\n'); //?
} while (u8i--); //?
while (1)
{
;
}
#else
TestBattery();
ChargeBattery();
#endif
}
}
CCAP1H = u8i; u8i定义的是啥?
软件不了解 学习一下
就在程序内定义了下uint8_t u8i;
还有就是上面的初始化u8i=255;