|
A Case Study
by Jerry Horn
Start ý Fine
Tuning ý Turn Up the Volume ý Timing
is Everything ý Storage ý Pricing
ý Encore ý Sources
and PDF
I was recently given an opportunity to
write about several of my favorite subjectsýmicrocontrollers, digital
signal processors (DSPs), and mixed-signal components, such as analog-to-digital
converters (ADCs) and digital-to-analog converters (DACs).
This opportunity arose when a gentleman
who is trying to make a guitar multi-effects unit was looking for
information about how to implement digital audio effects using a microcontroller.
He had difficulty finding any applications or algorithms for digital
effects, so he turned to Circuit Cellarýs ASK US section.
The more I thought about his question,
the more convinced I was that the answer really shows the differences
between microcontrollers and DSPs, particularly when it comes to signal
processing.
Let me first establish a baseline for
this article. The gentleman wants to use either a Microchip PIC16F873
or Scenix SX28AC. I am familiar with both of these microcontrollers.
He doesnýt want to use a DSP. However, let me choose one for comparison.
Because I am familiar with this DSP, I chose the Motorola DSP56364,
a processor commonly used in many audio signal processing applications.
Table 1 shows a comparison of the three devices.
|
Processor
|
Price
(US $)
|
Maximum
MIPs
|
General-
purpose I/O
|
Program
RAM
|
Data RAM
|
Package
|
|
PIC16F873
|
5.81(1)
|
5
(20 MHz)
|
24
|
4096 ý 14
|
192 ý 8
|
28-pin
|
|
SX28AC
|
4.05(1)
|
75
(75 MHz)
|
20
|
2048 ý 12
|
136 ý 8
|
28-pin
|
|
DSP56364
|
11.00(2)
|
100
(100 MHz)
|
16
|
512ý1280
ý24
|
100- or
112-pin
|
1792ý2560
ý 24
|
| Note: (1)
is the price for a quantity of 100 pieces. (2) is
the price for each quantity of one. |
| Table 1ýHere you
can see a variety of possible processors for a guitar multi-effect
application. |
Here are some of the features of each
processor:
ý PIC16F873ý10-bit ADC with five input
channels, two PWM, three timers, and USART
ý SX28ACý"Virtual Peripherals"
implemented in software (PWM, USART, timers, 8-bit ADC, etc.)
ý DSP56364ýExtended serial audio interface
(ESAI), serial host interface (SHI), direct interface to DRAM/SRAM,
24 ý 24 multiplier-accumulator, 56-bit barrel shifter, and PLL-based
clocking
As you can see, the microcontrollers
are inexpensive, small, and flexible. The DSP is larger, more expensive,
and more specialized. Note that the only price I could find for the
DSP is $11 in low quantities. It might be less expensive in quantities
of 100 (Motorola advertises $4.95 for quantities of 250,000).
NEXT
Circuit Cellar provides up-to-date information for engineers. Visit
www.circuitcellar.com for
more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com
or subscribe online.
ýCircuit Cellar, the Magazine for Computer Applications. Posted with
permission. |