Professional Documents
Culture Documents
Lecture 9
• Switched-Capacitor Filters
– “Analog” sampled-data filters:
• Continuous amplitude
• Quantized time
– Applications:
• First commercial product: Intel 2912 voice-band
CODEC chip, 1979
• Oversampled A/D and D/A converters
• Stand-alone filters
E.g. National Semiconductor LMF100
Switched-Capacitor Filters
Today
• Emulating resistor via switched-capacitor
network
• 1st order switched-capacitor filter
• Switch-capacitor filter considerations:
– Issue of aliasing and how to avoid it
– Tradeoffs in choosing sampling rate
– Effect of sample and hold
– Switched-capacitor filter electronic noise
– Switched-capacitor integrator topologies
EECS 247 Lecture 9: Switched-Capacitor Filters © 2005 H.K. Page 2
Switched-Capacitor Resistor
φ1 φ2
• Capacitor C is the “switched
capacitor” vIN vOUT
S1 S2
• Non-overlapping clocks φ1 and φ2
control switches S1 and S2, C
respectively
• vIN is sampled at the falling edge of
φ1
– Sampling frequency fS
φ1
• Next, φ2 rises and the voltage across
C is transferred to vOUT φ2
• Why does this behave as a resistor?
T=1/fs
Switched-Capacitor Resistors
• Charge transferred from vIN to φ1 φ2
vOUT during each clock cycle is:
vIN vOUT
S1 S2
Q = C(vIN – vOUT)
C
• Average current flowing from
vIN to vOUT is:
i=Q/t = Q . fs φ1
Substituting for Q: φ2
i =fS C(vIN – vOUT) T=1/fs
Req = 1
f sC
Example: φ1
f s = 1MHz ,C = 1pF φ2
Switched-Capacitor Filter
REQ
• Let’s build a “switched- capacitor vIN vOUT
” filter …
1 1
f −3dB = ×
f − 3dB = 1 f s × C1 2π ReqC2
2π C2
• Corner freq. proportional to: • Corner freq. proportional to:
System clock (accurate to few ppm) Absolute value of Rs & Cs
C ratio accurate à < 0.1% Poor accuracy à 20 to 50%
Continuous- time
Time Signal
Sampled Data
Sampled Data
+ ZOH
Clock
Amplitude
Nomenclature:
x(kT) ≡ x(k)
Continuous time signal x(t) x(t)
Sampling interval T
Sampling frequency fs = 1/T
Sampled signal x(kT) = x(k)
time
y(nT)
T = 1µs
fs = 1MHz
fin = 899kHz
voltage
time
time
fs = 1/T
y(nT)
time
Frequency domain
Before Sampling After Sampling
Amplitude
Amplitude
fs - fin fs + fin
899kHz 1101kHz
Amplitude
Frequency domain
Signal scenario
before sampling
fin fs /2 fs 2fs …….. f
Amplitude
Frequency domain
Signal scenario
after sampling &
filtering
fin fs /2 fs 2fs f
Key point: Signals @ nfS ± fmax__signal fold back into band of interest
àAliasing
EECS 247 Lecture 9: Switched-Capacitor Filters © 2005 H.K. Page 15
Aliasing
Frequency domain
sampling
frequency to x2
of the highest
freq. fin
à In most cases fs_old 2fs_old …….. fs_new f
not practical
2- Pre-filter
Amplitude
Amplitude
Pre-Filter
Anti-Aliasing Switched-Capacitor
Filter Filter
Maximum
Aliasing
Dynamic
Range
Filter Order
fs /fin-max
Tp sin(πfTp )
H( f ) =
Ts πfTp
0.6
0.5
Tp=0.5Ts
0.4
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3
f / fs
Tp=Ts
voltage
Tp=Ts
time
ZOH
sin(π fTs )
Amplitude
Magnitude droop
due to sinx/x
effect: Time domain
Voltage
Case 1) fsig=fs /4 time
Amplitude
-1dB Frequency domain
Droop= -1dB
fin fs f
0.6
0.4
Case 2) 0.2
Amplitude
-0.4
-0.6
-0.8
sampled data
after ZOH
-1
0 0.5 1 1.5 2 2.5 3 3.5
Time -5
x 10
Amplitude
-0.0035dB
Droop= -0.0035dB Frequency domain
à High
oversampling ratio fin fs f
desirable
Vi
Time
Domain
t
Freq.
Domain
fin f fs 2fs fs 2fs fs 2fs
Freq.
Domain
General
Signal fB fs 2fs fs 2fs fs 2fs
SC response:
extra delay and steps with
Impractical finite rise time.
exaggerated
No problem
ZOH
Periodic AC Analysis
RC filter
1. RC filter output
output 2. SC output after ZOH
3. Input after ZOH
4. Corrected output
Corrected output • (2) over (3)
no ZOH
• Repeats filter shape
around nfs
SC output • Identical to RC for
after ZOH
f <<fs/2
fs 2fs 3fs
Periodic AC Analysis
• SPICE frequency analysis
– ac linear, time-invariant circuits
– pac linear, time-variant circuits
• SpectreRF statements
V1 ( Vi 0 ) vsource type=dc dc=0 mag=1 pacmag=1
PSS1 pss period=1u errpreset=conservative
PAC1 pac start=1 stop=1M lin=1001
• Output
– Divide results by sinc(f/fs) to correct for ZOH distortion
Vin Vout Vo
S1 S2
Vin
time
C1 C2
time
Antialiasing Pre-filter
f-3dB fs 2fs
Output Frequency Spectrum
Switched-Capacitor Filters à problem with aliasing
Sampled-Data Filters
Anti-aliasing Requirements
f-3dB fs 2fs
Maximum
Aliasing
Dynamic
Range
Filter Order
fs/fin_max
Stopband Attenuation dB
corner frequency
12kHz/0.7=17.1kHz
• Check if attenuation requirement
is satisfied for widest filter
bandwidth à
17.1x1.3=22.28kHz
• Normalized filter clock
frequency to max. corner freq.
à256/22.2=11.48à make sure
enough attenuation Νοrmalized ω
• Check phase-error within 4kHz From: Williams and Taylor, p. 2-37
bandwidth: simulation
f-3dB fs 2fs
Switched-Capacitor Noise
• Resistance of switch S1 φ1 φ2
produces a noise voltage on C
with variance kT/C vIN vOUT
S1 S2
• The corresponding noise charge C
is Q2=C2V2=kTC
φ2
T=1/fs
φ2
T=1/fs
Switched-Capacitor Noise
• The mean-squared noise current due to S1 and S2’s kT/C noise is :
i = (Q fs ) = 2kBT C fs
2 2 2
Vclk
100ns
Vrc Vrc_hold
100kOhm
R S1
PNOISE Analysis PNOISE1
sweep from 0 to 20.01M (1037 steps)
ZOH1
C
T = 100ns
1pF
Sampled noise in
0 … fs/2: 62.2µV rms
Switched-Capacitor Integrator
-
φ1
+
∫
φ2
CI T=1/fs
φ1 φ2
Vin
- for fsignal << fsampling
Cs Vo
f s ×Cs
∫Vin dt
+
→ V0 =
CI
Cs
ω0 = f s × C
I
Main advantage: No tuning needed
à critical frequency function of ratio of caps & clock freq.
CI CI
φ1 φ2
Vin Vin
- -
Cs
Cs Vo
+ Vo
+
φ1 High φ2 High
à Cs Charged to Vin àCharge transferred from Cs to CI
Continuous-Time Discrete-Time
Vo ( Z ) = Z − 1Vi ( Z ) .......
• Set Z= e jωT
φ1 φ2 φ1 φ2 φ1 Clock
Vin
Vs
Vo
Switched-Capacitor Integrator
(n-3/2)Ts (n-1)Ts (n-1/2)Ts nTs (n+1)Ts
φ1 φ2 φ1 φ2 φ1 Clock
Vin
Vs
Vo
nTs .....................→ 1
( n − 1)Ts .............→ Z − 1
( n − 1/ 2 )Ts ..........→ Z − 1/ 2
( n + 1)Ts .............→ Z + 1
( n + 1/ 2 )Ts ..........→ Z + 1/ 2
Switched-Capacitor Integrator
CI
φ1 φ2
Vin
- φ1
Cs Vo
+
LHP in s domain
Vo ( Z ) = − Cs × Z − 1 , Z = e jωT
CI 1− Z − 1
Vin
Cs Cs − jωT / 2
= C × 1 = C × − jωeT / 2 jωT / 2
I 1− e jωT I e −e
Cs
= − jC × e− jωT / 2 × 1
I 2sin (ωT / 2 )
Cs 1
= −C × ωT / 2 × e− jωT / 2
I jωT sin (ωT / 2 )
Error
Ideal Integrator) Magnitude Error Phase
Vo ( Z ) = − Cs 1 × ωT / 2 × e− jωT / 2
CI jωT s i n (ωT / 2 )
Vin
Error
Ideal Integrator) Magnitude Error Phase
σ σ
Zeros lost!
fs / 2 fs
Frequency (Hz) 2fs f
Continuous-Time
Prototype
CI CI
φ1 φ2 φ1 φ2
Vin
- φ1 Vin
- φ2
Cs Vo Cs Vo
+ +
Switched-Capacitor Integrator
(n-3/2)Ts (n-1)Ts (n-1/2)Ts nTs (n+1)Ts
φ1 φ2 φ1 φ2 φ1 Clock
Vin
Vs
Vo