Pulse-Frequency Modulation (PFM) is a modulation method for representing an analog signal using only two levels (1 and 0). It is analogous to pulse-width modulation (PWM), in which the magnitude of an analog signal is encoded in the duty cycle of a square wave. Unlike PWM, in which the width of square pulses is varied at constant frequency, PFM fixes the width of square pulses while varying the frequency. In other words, the frequency of the pulse train is varied in accordance with the instantaneous amplitude of the modulating signal at sampling intervals. The amplitude and width of the pulses is kept constant. Pulse-Frequency Modulation (PFM) is a modulation method for representing an analog signal using only two levels (1 and 0). It is analogous to pulse-width modulation (PWM), in which the magnitude of an analog signal is encoded in the duty cycle of a square wave. Unlike PWM, in which the width of square pulses is varied at constant frequency, PFM fixes the width of square pulses while varying the frequency. In other words, the frequency of the pulse train is varied in accordance with the instantaneous amplitude of the modulating signal at sampling intervals. The amplitude and width of the pulses is kept constant.