PFM is a method of encoding analog signals into trains of square pulses and therefore has a wide variety of applications. There are practical difficulties in the design of electronics when working with non-fixed frequencies, such as transmission line effects in board layout and magnetic component selection, so generally, PWM mode is preferred. There are, however, select cases in which PFM mode is advantageous.