3个回答
展开全部
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
uchar a,b,i;
sbit pwm=P3^4;
sbit k1=P1^0;
void delay1(uint z);
void main()
{
while(1)
{
pwm=0; //产生周期26us 频率为38khz的pwm波
delay1(0);
pwm=1;
delay1(0);
}
}
void delay1(uint z)
{
;
}
#define uint unsigned int
#define uchar unsigned char
uchar a,b,i;
sbit pwm=P3^4;
sbit k1=P1^0;
void delay1(uint z);
void main()
{
while(1)
{
pwm=0; //产生周期26us 频率为38khz的pwm波
delay1(0);
pwm=1;
delay1(0);
}
}
void delay1(uint z)
{
;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询