#include "reg52.h" typedef unsigned int u16; typedef unsigned char u8; sbit ControlPort=P3^5; #define led P2 u8 ServePwmValue=1500;//?????????1500?? //????????? void Timer0_Int0() { TMOD=0x01; //???????1???????/??????T0 TH0=0; TL0=0; TF0=0; ET0=1; //?????ж? } //pwm