top01.jpg (17169 bytes)
mleft.jpg (4986 bytes) m01a.jpg (6169 bytes)     m02a.jpg (6905 bytes)     m03a.jpg (7743 bytes)    m04a.jpg (7456 bytes)     m05a.jpg (7878 bytes)     m06a.jpg (6862 bytes)     m07a.jpg (6076 bytes) mright01.jpg (5078 bytes)

Using PWM to Generate an Analog Output

Pulse Width Modulation outputs produce digital waveforms that can be used as low-cost digital-to-analog converters with only a few external components. To convert the PWM signal to an analog voltage, a low-pass filter is used. Concerns when selecting the components for the filter are noise components inherent in digital waveforms. PWM signals contain strong noise components at the PWM frequency and at odd harmonics of that frequency. PWM modules in all ADR products can operate at 9.76 Khz thus the strong noise components are at 9.76Khz and higher.  An RC filter with a bandwith many magnitudes lower than the PWM frequency will keep noise to a minimum.  We recommend a filter bandwidth of 30Hz  since the ADR devices are serial based and producing higher bandwidth outputs is not practical. The load on the filter should be kept as low as possible and use of a voltage follower buffer amplifier  may be required in some applications.

The Bottom Line...

To convert a PWM output to an analog voltage use a low-pass filter with an R = 4.7K and C = 1.0uF. This gives a bandwidth of 30Hz. Ensure the PWM frequency for the ADR product is set to 9.76Khz. ( The ADR2100 default is 610Hz ). 

Pwm1.gif (6333 bytes)

Note:   The ADR2100 2100sWEB.jpg (3905 bytes)has space on the PCB to install the RC components. For PWMA use position R6 and C6. For PWMB, use positions R7 and C7.  If it is desired to keep the RC filter  components off the PCB, remove the pull-down resistors shipped with the ADR2100 in positions C6 and C7 before connecting RC filter.

Ref.  Application Note AN538 , Microchip Technology Inc.

Back to Applications Page

NEWS         PRODUCTS         PROGRAMMING          APPLICATIONS          CUSTOM DESIGN          ORDERING          HOME


TestPoint is a trademark of Capital Equipment Corp.   
LabVIEW is a trademark of National Instruments.
Visual BASIC is a trademark of Microsoft Corporation


Copyright © 1999 ONTRAK CONTROL SYSTEMS 764 Notre Dame Ave, Unit #1 , Sudbury, Ontario, CANADA P3A 2T2  
"Quality serial Data Acquisition Interfaces"           PH. (705) 671-2652 FAX (705) 671-6127