Description: Timer DC motor* PWM control frequency and duty cycle on the determination of the 12M crystal, assumed that the PWM output frequency 1KHZ, so the number of timer interrupt** set C = 10, which 0.01MS interrupted once, then TH0 = FF, TL0 = F6 as set interrupt time 0.01ms, so* you can set the duty cycle changes from 1-100. That is 0.01ms* 100 = 1ms
To Search:
File list (Check if you may need any files):
定时器PWM控制直流电机.txt