51单片机测量PWM波的占空比的C语言程序

日期:2020-03-31 06:31:08 人气:1

51单片机测量PWM波的占空比的C语言程序

/**************************** pwm 从单片机的P3.2输入 /***************************/ #include typedef unsigned char uint8; typedef unsigned int uint16; //数据类型重定义 uint8 t; bit get; long pwm_all,pwm_h; void init() { TMOD =
    A+
热门评论