Pencuplikan Sinyal Waktu Kontinyu
dan Rekonstruksi
5.1 Pengolahan Sinyal Waktu Diskrit 5.1.1 Sampling
5.1.1.1 Sampling Priodik
5.1.1.2 Representasi domain frekuensi proses sampling 5.1.1.3 Frequency Ambiguity
5.1.2 Rekonstruksi
5.1.3 Pengolahan Sinyal Waktu Diskrit 5.2 Pengolahan Sinyal Dijital
5.2.1 Konversi Analog ke Digital (A/D Converter) 5.2.1.1 Anti aliasing Filter
5.2.1.2 Rangkaian Sampling and Hold (S/H) 5.2.1.3 Kuantisasi dan Coding
5.2.2 Konversi Digital ke Analog (D/A Converter) 5.2.2.1 Interpolasi Zero-order-hold (ZOH)
5.2.2.2 Interpolasi First-order-hold (FOH) 5.2.2.3 Interpolasi Cubic Spline
5.1 Pengolahan Sinyal Waktu Diskrit
(Discrete Time Signal Processing)
Discrete time
system
h(n)
x(n)
y(n)
x(n) n 12 3 4 5 6 7 8 y(n) n 12 3 4 5 6 7 8Contoh : Pemfilteran
Filter LTI
h(n)
x(n)
y(n)
x(n) n 12 3 4 5 6 7 8 y(n) n 12 3 4 5 6 7 8Filter LTI
H
(e
j)
X(e
j)
X(e
j)
( )
( )
( )
( )
( )
( )
DTFT j DTFT j DTFT jx n
X e
h n
H e
y n
Y e
Filter design
Deretan sinyal diperoleh dari pencuplikan secara periodik sinyal kontinyu ( ). ( )
-dimana adalah perioda sampling dan 1/ adalah frekue
c c s x n x t x n x nT n T f T
snsi sampling (sampel per detik). Frekuensi sampling dapat juga dinyatakan dengan 2 / (radians per detik).
Sistem yang merepresentasikan persamaan ( ) disebut ideal continuous-to-discrete-time c T x n x nT
(C/D) converter diilustrasikan pada gambar berikut
C/D
xc(t)
T
x(n)=xc(nT)
Dalam prakteknya operasi sampling diimplementasikan dengan A/D converter yang dapat
dianggap sebagai aproksimasi ideal C/D konverter.
5.1.1 Sampling
Secara matematis proses sampling direpresentasikan dalam 2 tahap;
1. Modulasi oleh impulse train modulator
2. Konversi impulse train ke deretan (sinyal waktu diskrit)
T Konversi impulse train ke deretan xc(t) xs(t) s(t) x(n)=xc(nT) xc(t) xs(t) x(n) t t n s(t) t T 12 3 4 5 6 7 8 T = Perioda pencuplikan fs= 1/T = frekuensi pencuplikan
Secara matematis proses sampling direpresentasikan dalam 2 tahap;
1. Modulasi oleh impulse train modulator
( )
( )
( ). ( )
= ( ).
=
(
).
n s c c n cs t
t nT
x t
x t
s t
x t
t nT
x nT
t
s-Transformasi Fourier dari ( )
2
( )
-
2 / (radians per detik).
Transformasi Fourier dari ( )
1
1
2
1
( )
( )
( )
( )
-2
2
n s k s s c c s c knT
s t
S j
k
T
T
x t
X
j
X
j
S j
X
j
k
X
j
T
T
-
2. Konversi impulse train ke deretan (sinyal waktu diskrit)
Transformasi Fourier Waktu Kontinyu dari ( )
( )
(
)
Karena
s k s j Tn s c nk
x t
X
j
x nT e
(
)
dan
(
) =
( )
maka
( )
(
)
(
)
1
1
2
(
)
-
(
)
c j j n n j j T s T j T c s cx n
x nT
X e
x n e
X
j
X e
X e
k
X e
X
j
k
X
j
T
T
T
T
Edisi Semester 2 17/18 EYH 7
Secara matematis proses sampling direpresentasikan dalam 2 tahap;
1. Modulasi oleh impulse train modulator
( )
( )
( ). ( )
= ( ).
=
(
).
n s c c n cs t
t nT
x t
x t
s t
x t
t nT
x nT
t
s-Transformasi Fourier dari ( )
2
( )
-
2 / (radians per detik).
Transformasi Fourier dari ( )
1
1
2
1
( )
( )
( )
( )
-2
2
n s k s s c c s c knT
s t
S j
k
T
T
x t
X
j
X
j
S j
X
j
k
X
j
T
T
-
2. Konversi impulse train ke deretan (sinyal waktu diskrit)
Transformasi Fourier Waktu Kontinyu dari ( )
( )
(
)
Karena
s k s j Tn s c nk
x t
X
j
x nT e
(
)
dan
(
) =
( )
maka
( )
(
)
(
)
1
1
2
(
)
-
(
)
c j j n n j j T s T j T c s c k kx n
x nT
X e
x n e
X
j
X e
X e
k
X e
X
j
k
X
j
T
T
T
T
T
X
c(j
)
Konversi deretan impuls ke deretan waktu diskrit xc(t) xs(t) s(t)X
s(j
)
X(e
j)
x[n]=xc(nT) xc(t) xs(t) x(n) t t n s(t) t T 12 3 4 5 6 7 8
( ) ( ) ( ) ( ) 2 ( ) - - ( ) ( ) ( ) ( ). ( ) 1 ( ) ( ) ( 2 c c s n k s s s c s c x t X j s t S j s t t nT k T x t X j x t x t s t X j X j S
1 2 1 ) ( ) - -2 ( ) ( ) 1 1 2 ( ) ( ) ( ) - ( ) c s c s k k j j j T s T c s c k k j X j k X j kj T T x n X e k X j X e X e X j k X j T T T T
T = Perioda pencuplikan fs= 1/T = frekuensi pencuplikan0 10 20 30 40 50
0 10 20 30 40 50
xc(t) = cos t x[n] = cos n
xc(t) = cos 2F t x[n] = cos 2f n
xc(t) = cos 2.1000 t x[n] = xc(nTs) = cos 2000(n.1/6000)
= cos 2000t x[n] = cos 2000/6000n = cos 1/3 n
Xc(j )= ( -2000 )+ ( +2000 ) Fs=6000 Hz t xc(t) x[n] n F=1kHz - 4000 -2000 0 2000 4000 12000 (rad/s)
X
c(j
)
-1/3 1/3 5 / 3 2 7 /3
(rad)
X(e
j)
)
T
k
2
T
(
j
X
T
1
)
e
(
X
s s k c s j
Ts=1/6000 sX
c(j
)
Konversi deretan impuls ke deretan waktu diskrit xc(t) xs(t) s(t)X
s(j
)
X(e
j)
X[n]=xc(nT)Sinyal xc(t)=cos (2000t) dicuplik dengan
(a) sampling rate 2500 Hz
s=5000
rad/s ,sehingga diperoleh sinyal hasil cuplikan :x[n]=xc(nT) = cos (2000nT) = cos( 2000/2500n) =cos[0.8n]
(b) sampling rate 1500 Hz, s=3000rad/s ,
sehingga diperoleh sinyal hasil cuplikan :x[n]=xc(nT) = cos (2000nT) = cos( 2000/1500 n)
= cos[ (4/3n) ]
= cos[ (2- 2/3) n] aliasing =cos[2/3n]
5.1.1.3 Frequency ambiguity
1 kHz
7 kHz
- 4000 -2000 0 2000 4000
(rad/s)
- 5000 -2000 0 2000 5000 10000
(rad/s)
X
c(j
)
S(j
)
-5000 -3 000-2000 2000 3000 5000 7000 8000 10000 12000
(rad/s)
2/T T=1/2500 sX
s(j
)
/T - 2 - 1.2 -0.8 0.8 1.2 2 2 .8 3.2 4 4 .8
(rad)
X(e
j)
xc(t)=cos (2000t) x [n]=cos(0.8 n)sampling rate 2500 Hz s=5000rad/s ,
-
k
T
2
k s
Xc(j )= ( -2000 )+ ( +2000 )
( )
2000 -
2000
-s s s kX
j
k
k
T
( )
j0.8 - 2
0.8 - 2
kX e
k
k
- 3000 0 3000 6000 9000
(rad/s)
S(j
)
X
s(j
)
X(e
j)
-3 000 -2000 -1000 0 1000 20003000 4000 5000 6000 9000 12000
(rad/s)
-2 -1.33 -0.66 0 0.661.33 2 2.66 3.33 4 6 8
(rad/s)
2/T - 4000 -2000 0 2000 4000
(rad/s)
X
c(j
)
/T T=1/1500 s xc(t)=cos (2000t)sampling rate 1500 Hz s=3000 rad/s ,
aliasing
-
k
T
2
k s
( )
2000 -
2000
-s s s kX
j
k
k
T
Xc(j )= ( -2000 )+ ( +2000 )
4
4
3 3( )
j- 2
- 2
kX e
k
k
5.1.2 Rekonstruksi
Konversi sinyal waktu diskrit ke impulse train x(n) x s(t) T xr(t) xs(t) xr(t) t t x(n) n 12 3 4 5 6 7 8 Filter Rekonstruksi Ideal hr(t)Secara matematis proses rekonstruksi ideal ((konverter diskrit ke kontinyu ideal).
direpresentasikan dalam 2 tahap;
1. Konversi deretan (sinyal waktu diskrit) ke impulse train
Secara matematis proses rekonstruksi direpresentasikan dalam 2 tahap;
1. Konversi deretan (sinyal waktu diskrit) ke impulse train
( )
-
2.Pemfilteran dengan filter rekonstruksi ideal
s n
x t
x n
t nT
berupa filter lowpass
Filter rekonstruksi adalah filter lowpass ideal :
,
(
)
0 ,
2
Respon
c r c s cT
H
j
T
sin
/
impuls filter lowpass ideal : ( )
/
( )
( )
( )
( )
-
-sin
/
( )
/
r r r s r r n n r n
t T
h t
t T
x t
h t
x t
h t
x n
t nT
x n h t nT
t
nT
T
x t
x n
t
nT
T
X(ej) Konversi sinyal waktu diskrit ke impulse train x(n) x s(t) T
X
s(j
)
Xr(j) xr(t) xs(t) xr(t) t t x(n) n 12 3 4 5 6 7 8 T = Perioda pencuplikan Filter Rekonstruksi Ideal hr(t) hr(t)Hr(j) T rFilter Rekonstruksi adalah filter lowpass ideal : ,
( ) 0 ,
2
sin / Respon impuls filter lowpass ideal : h (t)
/ c r c s c T H j T t T t T
T
Hr(j) T hr(t)Teorema Pencuplikan Nyquist
Bila x
c(t) adalah sinyal dengan lebar bidang frekuensi terbatas : X
c(j
)=0,
>
NMaka x
c(t) secara unik dinyatakan oleh cuplikannya x[n]=x
c(nT), bila
- 4000 -2000 0 2000 4000
(rad/s)
- 5000 -2000 0 2000 5000 10000
(rad/s)
X
c(j
)
S(j
)
-5000 -3 000-2000 2000 3000 5000 7000 8000 10000 12000
(rad/s)
2/T T=1/2500 sX
s(j
)
/T - 2 - 1.2 -0.8 0.8 1.2 2 2 .8 3.2 4 4 .8
(rad)
X(e
j)
xc(t)=cos (2000t) x [n]=cos(0.8 n)sampling rate 2500 Hz s=5000rad/s ,
-
k
T
2
k s
Xc(j )= ( -2000 )+ ( +2000 )
( )
2000 -
2000
-s s s kX
j
k
k
T
( )
j0.8 - 2
0.8 - 2
kX e
k
k
- 5000 -3000 -2000 0 2000 3000 5000 10000
(rad/s)
-5000 -2500 0 2500 5000 10000
(rad/s)
X
s(j
)
X(e
j)
- - 1.2 -0.8 0.8 1.2 2 2.4 3.2 4 4.8
(rad)
Hr(j) - 4000 -2000 0 2000 4000
(rad/s)
X
r(j
)
,- 3000 0 3000 6000 9000
(rad/s)
S(j
)
X
s(j
)
X(e
j)
-3 000 -2000 -1000 0 1000 20003000 4000 5000 6000 9000 12000
(rad/s)
-2 -1.33 -0.66 0 0.661.33 2 2.66 3.33 4 6 8
(rad/s)
2/T - 4000 -2000 0 2000 4000
(rad/s)
X
c(j
)
/T T=1/1500 s x[n] = cos [2/3n] xc(t)=cos (2000t)sampling rate 1500 Hz s=3000 rad/s ,
aliasing
-
k
T
2
k s
( )
2000 -
2000
-s s s kX
j
k
k
T
Xc(j )= ( -2000 )+ ( +2000 )
4
4
3 3( )
j- 2
- 2
kX e
k
k
-3 000 -2000 -1000 0 1000 20003000 4000 5000 6000 9000 12000
(rad/s)
- -1.33 -0.66 0 0.66 1.33 2 1.33 1.66 4 6 8
(rad/s)
X(e
j)
X
s(j
)
Hr(j) -3000 -1000 0 1000 3000
(rad/s)
X
r(j
)
Hr(j) -3 000 -1500 0 1500 3 000 6000 9000 12000
(rad/s)
5.1.3 Pengolahan Sinyal Waktu Diskrit
Konversi deretan impuls ke diskrit Sistem diskrit H(ej) Konversi diskrit ke deretan impuls Filter Rekonstruksi Ideal Hr(j) xc(t) xs(t) x[n] X(ej) y[n] Y(ej) ys(t) Ys(j) yr(t) Yr(j) T5.1.3 Pengolahan Sinyal Waktu Diskrit
1 2
Sinyal masukan sistem waktu diskrit [ ] ( ) ( ) ( )
Sinyal keluaran sistem waktu diskrit [ ]
sin / Setelah rekonstruksi: ( ) [ ] / Spektr j c c k r n k x n x nT X e X j T T T y n x n t nT T y t y n t nT T
.
um sinyal ( ) ( ) ( ). 0Bila sistem waktu diskrit adalah sistem linier dan tidak berubah terhadap
j T j T r r r T Y e T y t Y j H j Y e T
waktu, maka ( ) ( ) ( ) dan ( ) ( ) ( ) ( ) 1 2 ( ) ( ) ( ) ( )Bila ( ) mempunyai spektral t
j j j j T j T r r j T r r c k c Y e H e X e Y j H j H e X e k Y j H j H e X j T T T x t
erbatas maka (j ) 0, dan
( ) adalah filter low pass ideal, maka
( ). ( ) 0 c r j T c r X T H j H e X j T Y j T
aliasing terjadi tidak agar tinggi cukup n pencuplika frekuensi • terbatas ya frekuensin pita lebar masukan sinyal • waktu. terhadap berubah tidak dan linier diskrit waktu sistem • : bila waktu terhadap berubah tidak dan linier adalah dijital secara sinyal pengolahan Sistem : Catatan T ) e ( H ) (j H : ana dim T j X ). (j H ) (j Y maka rate, Nyquist n pencuplika frekuensi Bila T j eff c eff r A/D Converter
5.2 Pengolahan Sinyal Digital (Digital Signal
Processing)
Digital Processorx(n)
y(n)
D/A Coverter Prefilter A/D Coverter Postfilterx(t)
y(t)
Sampling & Hold Quantizer EncoderEdisi Semester 2 17/18 EYH 28
5.2.1 Konversi Analog ke Digital (A/D Converter)
5.2.1 .1 Anti aliasing filter
5.2.1.2 Sample and Hold Circuit
Courtesy from Discrete time signal processing , Alan V.Oppenheim
Xs(t) s(t)
X
a(t)
Zero order Hold ha(t)Courtesy from Digital Signal Processing, John G.Proakis and Dimitris G Manolakis
5.2.1.3 Quantization and Coding
Quantization : proses nonlinear dan non invertible yang memetakan amplituda x(n)=x(nT) pada waktu t=nT ke amplituda yang diambil dari satu set nilai yang berhingga,
k x
k