51 单片机PWM(直流电机)#include unsigned char timer1; sbit PWM=P1^2; void system_Ini() { TMOD|= 0x11; //PWM TH1 = 0xfe; //11.0592 TL1 = 0x33; TR1 = 1; IE =0x8A; } main() { system_Ini(); while(1) { if(timer1>100) timer1=0; if(timer1