The period can easily be calculated by using the formula: The period of the signal is defined as the time from one rising edge to the next rising edge of the square wave signal and is inversely proportional to the PWM frequency. That pulse width relative to the period of the signal is called the duty cycle. The amount of time the signal remains high is typically called the pulse width. If the PWM signal runs at a fixed frequency, then changing the high time of the signal will also change the low time of the signal. PWM is a way to use a digital output to vary the on, or high time, to create a variable output or square wave. I have also written a blog post on how to control the dc motor with PIC MCU using the PWM, if you want you can read. The main aim of this blog post to describe how we can use the inbuilt PWM of the PIC microcontroller. Also, the user can configure the duty cycle (“ON” time) that can be used to encode a message or control the amount of power supplied to electrical devices. The PWM peripheral is used to generate a digital signal with a user-defined period. In PIC MCU the PWM is a common peripheral and some version of PIC MCU has more than on the PWM module. Pulse width modulation (PWM) is not only used in communication systems but also used in high current driving applications like motor drivers, LED drivers, etc.
0 Comments
Leave a Reply. |