AdvancedTopic 90 of 104Electronics & Embedded
Digital signal processors
Specialised CPUs for fast multiply-accumulate operations.
In depth
DSPs have hardware multiply-accumulate (MAC), circular addressing, zero-overhead loops and SIMD for filters, FFTs and control loops. Many MCUs now include DSP extensions. Use fixed-point libraries (CMSIS-DSP) and optimise data placement.
Key points
- FIR filter is a MAC loop
- Harvard architecture
- Saturating arithmetic
ExampleA 64-tap FIR filter needs 64 MACs per sample.
What is Digital signal processors?
Specialised CPUs for fast multiply-accumulate operations.
Why is it important to understand digital signal processors?
DSPs are designed for the multiply-accumulate operations at the heart of filters and transforms, so they process signals far faster than general CPUs.
What is a multiply-accumulate operation?
Multiplying two numbers and adding the result to a running sum, which is the basic step of a digital filter.
Do modern MCUs have DSP features?
Many have DSP instructions and fast multipliers, which handle many signal tasks without a separate chip.
How is Digital signal processors used in practice?
Typical applications include running a real-time audio filter on a dedicated DSP chip, computing an FFT on a radar signal in real time and implementing a motor control algorithm with fast multiply-accumulate operations.
What should I learn before Digital signal processors?
Study "TinyML" first (topic 89 of 104 in Electronics & Embedded). It covers the groundwork this topic builds on.
What are the key points of Digital signal processors?
FIR filter is a MAC loop. Harvard architecture. Saturating arithmetic.
Can you give an example of Digital signal processors?
A 64-tap FIR filter needs 64 MACs per sample.
What comes after Digital signal processors?
The next topic is "Fixed-point arithmetic", which builds directly on this one.
How difficult is Digital signal processors?
It is classed as Advanced in Electronics & Embedded (topic 90 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Electronics & Embedded.