A microcontroller with a 5V supply is programmed to generate a pulse width modulated (PWM) output with a frequency of 100Hz and a duty cycle of 20%.What is the pulse width of the PWM output?
时间: 2024-02-14 21:21:42 浏览: 89
PWM.zip_pulse width
The pulse width of the PWM output can be calculated as follows:
Period (T) = 1/frequency = 1/100Hz = 0.01s
Duty Cycle = On Time / Period
On Time = Duty Cycle * Period
On Time = 0.20 * 0.01s = 0.002s
Therefore, the pulse width of the PWM output is 0.002 seconds or 2 milliseconds.
阅读全文