dingzy_2002 发表于 2017-8-17 08:52
没问题。
#include
#include
void initial();
void ccp1_pwm();
void interrupt power(void);
void delay (unsigned int x,unsigned int y);
unsigned int num=0;
unsigned int num1=0;
unsigned int work_en=0;
unsigned int T1=1;
unsigned int T0=1;
unsigned int num2=0;
main()
{
initial();
while(1)
{
asm("CLRWDT");
if(work_en==0)
{
CCP1CON=0x00;
RC5=0;
}
else
{
T0=0;
if(num