Path: EDN Asia >> Design Ideas >> IC/Board/Systems Design >> Digital filter simulation with PSpice
IC/Board/Systems Design Share print

Digital filter simulation with PSpice

27 May 2015  | Dobromir Dobrev

Share this page with your friends

The PSpice schematic for AC simulation of a digital moving-average filter is shown in figure 1. The moving-average filters reject any signals with frequencies in the filter zeros.

For example, let the sampling frequency be fs = 2kHz, or T = 0.5ms. To reject 50Hz power-line (PL) interference, the samples from one period must be averaged. At 2kHz sampling rate, one PL period consists of 20ms/0.5ms = 40 samples. The averager can be simulated directly by a transfer function (output MAV40T), or by a structure close to its real algorithmic realisation using delay blocks, gain blocks, and summing and difference junctions (output MAV40R). The simulation has notches at all harmonics of PL interference, as seen in figure 2.

Figure 1: PSpice schematic for AC line interference averager (comb filter).

Figure 2: Frequency response of the averager.

The presented approach is fast and easy. I have used it for 10 years, and was inspired to share my knowledge after discovering the Design Idea in Reference 1. Other examples of digital filters simulated with the presented approach can be found in Reference 2.

1. Lopez D., Transmission lines simulate digital filters in PSpice, EDN, 2008


About the author
Dobromir Dobrev has about 20 years experience in CMOS and BJT analogue and mixed-signal IC design (opamps, comparators, bandgaps, ldos, filters, oscillators, lvdss, plls, adcs, etc.), as well as in signal processing in medical electronics (bioinstrumentation, bioamplifiers, biosignal filtering) where he has many publications. He started working at the Central Laboratory for Electromedical Instrumentation (CLEMA) in a former Medical Academy Sofia. He received his PhD degree in Electronics from the Centre of Biomedical Engineering at the Bulgarian Academy of Sciences in 2001. Since 1997 he continued his career mainly in the field of microelectronics. He was an analogue IC designer at Semcotec Engineering, Silway Semiconductors, Megaxess and a senior IC designer at Melexis. Currently, he is with FACET (Fabless Centre for Engineering and Test), and lives in Sofia, Bulgaria.

 First Page Previous Page 1 • 2

Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.

Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming

News | Products | Design Features | Regional Roundup | Tech Impact