Generation of Multiple Frequency Pulse Width Modulation Signals Using FPGA

سامر جالودي | Samer Jaloudi


Microcontrollers, such as the ones used in Arduino, are low-cost, simple, and suitable for low frequency and speed applications. However, concurrent processing and concurrent generation of multiple signals are necessary for many applications such as the automotive sector, broadcasting, consumer electronics, and industrial applications. Field Programmable Gate Arrays (FPGAs) can generate concurrent signals that are more accurate than signals generated by microcontrollers. Moreover, FPGAs have higher performance than microcontrollers do, mainly in high-frequency applications. In this paper, multiple frequency pulse width modulation (PWM) signals are concurrently generated from an FPGA Cyclone IV core board. The frequency of the generated PWM signals, the duty cycle, and the bit resolution is reconfigurable via simple variables in the entity section. The solution consists of six PWM signals. The generated signals are employed in three practical scenarios. In the first scenario, three of the produced signals are used to control light-emitting diodes (LEDs) and generate music tones and alarms. In the second scenario, one of the produced PWM signals is used to generate a sine wave and then smoothed via an add-on filter, making the developed system work as a function generator. In the third scenario, one of the produced PWM signals is used to control the speed of a motor by changing the duty cycle percentage. In this context, the developed system works as an analog to digital converter (DAC) that is able to control analog systems from a digital environment. The proposed system is compact, low-cost, scalable, and generates accurate signals.


DAC, Motor Control, Duty Cycle, FPGA, LPF, PWM, Sine Wave Generation.

Full Text:



Abdelmessih, G. Z., Alonso, J. M., & Perdigão, M. S. (2016, September). Hybrid series-parallel PWM dimming technique for integrated-converter-based HPF LED drivers. In 2016 51st International Universities Power Engineering Conference (UPEC) (pp. 1-6). IEEE.

Amorndechaphon, D. (2016, September). High-efficiency PWM DC-AC inverter for small PV power generation system. In 2016 International Conference on Cogeneration, Small Power Plants and District Energy (ICUE) (pp. 1-6). IEEE.

Barua, J., & Abedin, Md. A. (2018, November). Design and Implementation of a FPGA Based Closed Loop Speed Controller for DC Motor using PWM Technique. In 2018 International Conference on Advancement in Electrical and Electronic Engineering (ICAEEE) (pp. 1-4). IEEE.

de Castro, A., Sutter, G., Huerta, S. C., & Cobos, J. A. (2007, February). High Resolution Pulse Width Modulators in FPGA. In 2007 3rd Southern Conference on Programmable Logic (pp. 137-142). IEEE.

Estes, F., Lentijo, S., & Monti, A. (2005, June). A FPGA-based approach to the digital control of a class-D amplifier for sound applications. In 2005 IEEE 36th Power Electronics Specialists Conference (pp. 122-126). IEEE.

Guo, X. Y., Wan, G. C., & Tong, M. S. (2019, December). An Intelligent Control System of Music Rhythms by RGB-LED Lamp. In 2019 Photonics & Electromagnetics Research Symposium-Fall (PIERS-Fall) (pp. 1622-1627). IEEE.

Intel FPGAs, C. (2021). Cyclone® IV FPGAs Devices - Intel® FPGA. Retrieved 14 March 2021, from

Jung, H. M., Kim, J. H., Lee, B. K., & Yoo, D. W. (2010, June). A new PWM dimmer using two active switches for AC LED lamp. In The 2010 International Power Electronics Conference-ECCE ASIA- (pp. 1547-1551). IEEE.

Karthikeyan, K., Jaisheela, J., Kumar, M. D., & Kumar, K. S. (2011, July). Sinusoidal PWM signal generation using TMS320C6711 DSP for power control in mobile phones. In 2011 International Conference on Process Automation, Control and Computing (pp. 1-4). IEEE.

Kodama, K., & Koutaki, G. (2019, October). Development of guitar playing robot by PWM control of solenoid. In 2019 IEEE 8th Global Conference on Consumer Electronics (GCCE) (pp. 291-293). IEEE.

Liang, J., Gao, S., & Li, Y. (2011, December). Design of audio directional system based on FPGA. In Proceedings 2011 International Conference on Transportation, Mechanical, and Electrical Engineering (TMEE) (pp. 613-616). IEEE.

Lu, J., & Wu, X. (2009, May). A novel multiple modes PWM controller for LEDs. In 2009 IEEE International Symposium on Circuits and Systems (ISCAS) (pp. 1767-1770). IEEE.

Martins, D. S., Tozetto, E. H., Iano, Y., & Swart, J. W. (2017, November). PWM algorithm for real-time power monitoring and brightness control of large scale matrix leds. In 2017 Brazilian Power Electronics Conference (COBEP) (pp. 1-6). IEEE.

Mondal, S., & Sharma, R. K. (2019, July). Low Power Hardware Based Real Time Music System and Digital Data Transmission Using FPGA. In 2019 International Conference on Communication and Electronics Systems (ICCES) (pp. 21-23). IEEE.

Park, C., Kong, T. H., & Cho, G. H. (2014, September). Low drain voltage S/H type PWM LED current driver for BLU in mobile LCD. In Proceedings of the IEEE 2014 Custom Integrated Circuits Conference (pp. 1-4). IEEE.

Payak, M., & Kumbhar, S. R. (2015, October). FPGA based PWM control of lnduction motor drive and its parameter estimation. In 2015 International Conference on Applied and Theoretical Computing and Communication Technology (iCATccT) (pp. 631-635). IEEE.

Saragih, Y., Dermawan, R. D., Latifa, U., & Ming, C. C. (2020, June). Smart Angklung 2 Octave. In 2020 3rd International Conference on Mechanical, Electronics, Computer, and Industrial Technology (MECnIT) (pp. 276-281). IEEE.

Singh, P. D., Sharma, A., & Gao, S. (2018, June). PWM based AC-DC-AC converter for an Isolated hydro power generation with variable turbine input. In 2018 2nd International Conference on Power, Energy and Environment: Towards Smart Technology (ICEPE) (pp. 1-6). IEEE.

Sreekanth, C., & Moni, R. S. (2013, April). Fpga implementation of simplified amtc-pwm algorithm for a single phase voltage source inverter. In 2013 IEEE Conference on Information & Communication Technologies (pp. 1282-1287). IEEE.

Svilainis, L. (2012). Comparison of the EMI performance of LED PWM dimming techniques for LED video display application. Journal of display technology, 8(3), 162-165.

Wojtkowski, W. (2018, September). Automotive LED Lighting with Software PWM Generators. In 2018 VII Lighting Conference of the Visegrad Countries (Lumen V4) (pp. 1-4). IEEE.

Yoo, H., Kim, J. H., & Sul, S. K. (2007). Sensorless operation of a PWM rectifier for a distributed generation. IEEE Transactions on Power Electronics, 22(3), 1014-1018.



  • There are currently no refbacks.

Copyright (c) 2021 Palestinian Journal of Technology and Applied Sciences (PJTAS)

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.