Code covered by the BSD License  

Highlights from
Digital Resistor-Capacitor (RC) Filter

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 1.94 KB File ID: #24617

Digital Resistor-Capacitor (RC) Filter

by Jeff Tackett

 

01 Jul 2009

Generates digital IIR coefficients from only Resistor and Capacitor values

| Watch this File

File Information
Description

Returns equivalent IIR coefficients for an analog RC filter

Usage: [B,A] = RC_FILTER(r, c, fs, type);

            R is the resistance value (in ohms)
            C is the capacitance value (in farrads)
            FS is the digital sample rate (in Hz)
            type is a character string defining filter type
                Choices are: 'high' or 'low'

This function uses a pre-calculated equation for both of these circuits that only requires the resistance and capacitance value to get a true digital filter equivalent to a basic analog filter.

The math behind these equations is based off the basic bilinear transform technique that can be found in many DSP textbooks. The reference paper for this function was "Conversion of Analog to Digital Transfer Functions" by C. Sidney Burrus, page 6.

This is also the equivalent of a 1st order butterworth with a cuttoff frequency of Fc = 1/(2*pi*R*C);

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
signal processing Jeff Tackett 02 Jul 2009 10:19:08
rc filter Jeff Tackett 02 Jul 2009 10:19:08
iir design Jeff Tackett 02 Jul 2009 10:19:08
iir simulation Jeff Tackett 02 Jul 2009 10:19:08
iir Jeff Tackett 02 Jul 2009 10:19:08
resistor Jeff Tackett 02 Jul 2009 10:19:09
capacitor Jeff Tackett 02 Jul 2009 10:19:09
analog filter Jeff Tackett 02 Jul 2009 10:19:09
automotive Jeff Tackett 02 Jul 2009 10:19:09
electronics Jeff Tackett 02 Jul 2009 10:19:09
analogtodigital Jeff Tackett 02 Jul 2009 10:19:09

Contact us at files@mathworks.com