Simply changing the FPGA counter specifications can reduce the ripple of the PWM counter as a DAC function. When some analog output is required and an FPGA is available in the system, it is likely to choose to use a PWM module and a simple low-pass filter as shown in Figure 1. The output of the FPGA is a fixed frequency, and the counter and digital comparator make the duty cycle variable. Typical waveform (Table 1).
Figure 1 PWM module and simple low-pass filter
Table 1 Typical waveform of FPGA output
Assuming a high signal enable, the counter counts every clock cycle and the frequency of the PWM output is the clock frequency divided by a power of 2. By connecting a prescaler, the enable is used to reduce the output frequency. Since the output frequency is fixed, the filter is easy to calculate. It is known that the worst ripple occurs at a duty cycle of 50%. The maximum ripple and rise time constraints combine to determine the filter type and RC (resistance/capacitance) value.
A non-trivial modification to the code in Table 1 can improve the performance of the PWM circuit. Whereas in the original system the maximum ripple current occurred at 50% duty cycle and the minimum ripple current occurred at minimum duty cycle, the improved version shows the maximum ripple equal to the minimum of the standard version. The key is to generate the highest frequency possible while keeping the average duty cycle constant. The higher the output pulse frequency, the better the filter performance. Table 1 is modified by reprogramming the binary comparators by swapping all the bits from left to right. The MSB (most significant bit) becomes the LSB (least significant bit), the LSB becomes the MSB, and so on (Table 2). Only bits need to be reprogrammed, no additional registers or logic cells are needed.
Table 2 FPGA-PWM reprogrammed binary comparator
Table 3 shows the pulse sequence from the 4-bit PWM. In Table 3, we can see that the frequency is the highest at 50% duty cycle (second column, value 8), which is the clock frequency divided by 2. At the first ripple point (second column, value 1), the same ripple occurs in the traditional PWM system, that is, the pulse sequence is the same.
Table 3 Pulse sequence issued by 4-bit PWM
Previous article:How to Address Common Challenges in Voltage Switching
Next article:Conductivity unit conversion and determination
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Interconnecting automotive 48V and 12V rails in dual-battery systems
- Do I need to draw a system architecture diagram before designing a digital circuit using Verilog?
- The difference between new energy buses and passenger cars in terms of BMS structure
- Please recommend some learning materials for system verilog and uvm
- 【IoT Development Based on Raspberry Pi Education Kit】Project Submission
- [RISC-V MCU CH32V103 Review] PWM Test
- See what others have written
- How do you know the capacity of the chip capacitors on the circuit board?
- Request information on the Antminer Z9mini mining machine control board
- [Silicon Labs Development Kit Review] Reading PDM Audio Signals