Technical Article

Pulse Frequency Modulation (PFM): It’s Not PWM, But Related

October 12, 2023 by David Peterson

Every so often, a new data format comes along, and we first consider that it might simply be a mistake in typing. Pulse Frequency Modulation (PFM) is not brand new, but still unknown to many engineers.

When we use the term ‘PWM,’ most everyone would immediately recognize this as pulse width modulation, the conversion of a 0%-100% scale of values into a digital value with only the duration of a pulse needing to be measured in order to determine the analog value.

PWM is indeed common, and the applications are numerous: from driving motors to simulating varying voltages to small load devices, and even some audio applications where true analog values or difficult or impractical.

However, there is a related technology that is far less known, but still somewhat common in application. This is known as pulse frequency modulation, or PFM.

 

What is PFM?

Just like its common PWM cousin, the PFM technology is primarily used to convert a range of signals, called an analog value, into a changing digital measurement that can be captured by even the most basic discrete computers. In this way, it can be used by microcontrollers and industrial controllers (like PLCs), and still be easily adaptable to more advanced industrial computers.

 

PWM compared to PFM

Figure 1. PFM as compared to PWM for low-range and high-range signals. Note that the PWM at the top is a fixed frequency, varying width %, and the PFM at the bottom is a fixed width %, but varying frequency. Image used courtesy of Control Automation

 

How is PFM Different from PWM?

The main difference between PWM and PFM is that PWM, since the width of the pulse is changing at a fixed frequency, a timer must be reserved for measuring the duration of the ‘on’ time of the pulse, thus yielding a ‘duty cycle’ percentage, equivalent to 0-100% of the full voltage analog signal. Since the frequency of the signal does not change, only the duration of the ‘on’ time, we have no need to count the number of cycles in a second as it is fixed.

In contrast, the PFM concept varies the frequency of the signal, but each of the pulses maintains an equal time off and on. This equal on/off pulse is known as a square wave pulse, so we have no need to measure the duration of each pulse. There are two ways to measure a PFM signal, which provides some diversity to the use cases and control theories.

 

Measuring Overall Pulse Width

First, a timer can be used to measure the total duration of the pulse, then using the inverse of that pulse time to calculate the frequency, in typical electronic math fashion.

 

Measuring Pulse Counts Over a Fixed Time

If using a timer to measure each pulse is not practical or not possible, a counter can be used to measure the rising time or falling time, summing up the number of pulses over a short time to provide a snapshot of the current frequency.

Both of these strategies–pulse time and pulse count–depend on a known min and max frequency that relate to 0% and 100% of the full-scale real-world value. The max frequency must not be higher than the hardware counter is capable of detecting.

 

Where is PFM Used?

One of the major downsides of using PFM is the disruption to nearby applications because the frequency changes through a range. PWM, on the other hand, is a fixed frequency of pulses, so the Hz can be optimized to remove interference with nearby transmission or control equipment.

For this reason, we do not see PFM used in nearly the quantity of applications as compared to PWM, yet two primary applications dominate the use of PFM.

 

Toroid and ferrite core inductors on a PCB

Figure 2. When toroid and ferrite core inductors are used with a very low PWM duty cycle for light loads, they can reduce the efficiency of the supply, capitalizing instead on PFM pulsing. Image used courtesy of Adobe Stock

 

Power Supplies

First, switch-mode power supplies rely on a pulsing DC output, varying the power output to the load based on the load conditions. This allows heavy loads to receive a more constant energy supply as needed, but lighter loads can consume less power from the source, resulting in a more efficient supply.

However, when the typical PWM is supplied to a light load, the ‘off’ time of the pulse is very long, so the inductor supplying power is able to fully discharge and the supply capacitor can also discharge, reducing efficiency since it must be recharged before supplying power to the load. To prevent this problem, the PFM model uses a square wave with equal on/off times, so the inductor is never able to discharge and the supply of current is continuous.

 

PFM Sensors

Several companies have developed analog equivalent measurement systems that still make use of digital qualities. Using PFM and counting edge transitions can consume far less dedicated processing power than running continuous timer tasks, as would be required for PWM.

 

An example of a PFM converter module

Figure 3. Banner Engineering’s converter from analog to pulsed output signals. Image used courtesy of Banner Engineering

 

In modern systems, with the variety of both pure analog and advanced protocols like IO-Link, PFM is not seen as a very common solution to the problem of analog signaling, yet some applications (such as Banner Engineering’s S15C system) provide a method of converting between pure analog signals and discrete switched outputs for interface with purely digital controllers.

 

How Common is PFM?

Once again, this method of signal switching is perhaps not a very common pulse train method to encounter. Similarities between PWM and PFM can create confusion, but it’s helpful to understand the differences in order to recognize why it has been leveraged for use in a few key areas of application throughout industry.