

















Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!


















Primeiro Trimestre / 200 2
Professor: Carlos Aurelio Faria da Rocha
u Or conversely, an indexed set of random variables.
( , )
1
xtE
( , )
2
xtE
( , )
3
xtE
t
t
t
lFurthermore, a Random
Process evaluated at a
particular point in time is a
Random Variable.
lA random process is
ergodic in the mean if the
time average of every
sample function is the same
as the expected value of the
random process at any time.
u Ergodic in the mean:
u Ergodic in the correlation:
u From any sample function:
u From the autocorrelation:
u From the Power Spectral Density:
x
x
2
P | x ( t ) |
x
( 0 )
x x
P = R
∞
− ∞
P = P f df
x x
( )
u A SSS process is always WSS.
u However, a WSS process is not necessarily SSS.
u A WSS Gaussian random processes is SSS.
Ü a WSS Gaussian R.P. is completely specified by its
mean and autocorrelation function.
Ü The Wiener Khintchine theorem
x x
l Analog-to-digital conversion is
(basically) a two step process:
u Sampling
Ü Convert from analog to
discrete-time.
u Quantization
Ü Convert from discrete-time to
digital.
l Sampling does not introduce
distortion provided that the Nyquist
theorem is satisfied.
l Quantization does however
introduce distortion.
ADC
Sample
Quantize
Analog
Input
Signal
Digital Output
Signal
u Each sample can take on any value
u e.g. 3.752, 0.001, etc.
u The number of possible values is infinite.
u E.g. suppose we must round to the nearest tenth,
then:
3.752 --> 3.
0.001 --> 0
u The number of levels M does not necessarily have to
be a power of two.
u However, the bit rate is higher and more bandwidth is
required.
u Telephone systems typically use 8 bits of resolution.
Ü 64 kbps
u CD players use 16 bits of resolution per channel.
Ü 705.6 kbps (mono)
n M
2
=log
u i.e. when all values
within the range are
equally likely.
2 4 6 8
2
4
6
Input signal
x(t)
Output signal
x
q
(t)
-8 -6 -4 -
Example Uniform 3 bit quantizer
u The input to the quantizer will have a more uniform
distribution.
u where:
Ü μ = 255 and |x(t)| < 1
ln( 1 )
ln( 1 | ( ) |)
| () |
+μ
=
x t
y t
0 1
1
Input |x(t)|
Output |x(t)|
u i.e. R
X
(t) ≈ R
X
(t + T s
u For example in speech the correlation between
adjacent samples is 0.
u A scalar quantizer works on just one sample at a
time.
u Increased hardware
complexity.
u Reduced perceived
speech quality.
1.2 2.4 4.
16 24 32 64
Unsatisfactory (1)
Poor (2)
Fair (3)
Good (4)
Excellent (5)
Bit Rate (kbps)
Perceived
Speech
Quality
Toll quality
Communications
quality
Vocoders Waveform coders
u This is called waveform coding.
u DPCM is a type of waveform coding.
u Process of analysis and synthesis.
u Called vocoding.
u Most vocoding techniques are based on linear
predictive coding (LPC).
u The prediction filter is more complex
Ü more taps in the FIR filter.
u The filter coefficients are transmitted more frequently
Ü once every 20 milliseconds.
u The error signal is not transmitted directly
Ü The error signal can be though of a type of noise.
Ü Instead the statistics of the “noise” are transmitted
Ü This is where the big savings (in terms of bit rate)
comes from.
u Regular Pulse Excited Long Term Prediction.
u Used in GSM (European Digital Cellular)
u 13 kbps.
u Vector Sum Excited Linear Predictive Coder.
u Used in USDC, IS-136 (US Digital Cellular).
u 8 kbps.
u Qualcomm Code Excited Linear Predictive Coder.
u Used in IS-95. (US Spread Spectrum Cellular)
u Variable bit rate (full, half, quarter, eighth)
u Original full rate was 9.6 kbps.
u Revised standard (QCELP13) uses 14.4 kbps.
n
2
n
2
2
dB
dB
n
dB
dB
u If we want to use a binary transmission system, then
we need to map each quantized sample into an n bit
binary word.
u The mapping is one-to-one so there is no distortion
introduced by encoding.
u Some mappings are better than others.
Ü A Gray code gives the best end-to-end performance.
Ü The weakness of Gray codes is poor performance when
the sign bit (MSB) is received in error.
X Q
PCM word Gray Code
+7 000 110
+5 001 111
+3 010 101
+1 011 100
-1 100 000
-3 101 001
-5 110 011
-7 111 010
l Each PCM word can have a parity bit appended to it to
allow the detection of a single error.
u The parity bit is selected so that the number of bits in the
word is even (or odd).
u If the number of bits received is not even (or odd) then we
know there was a bit error.
X Q
Gray Code with Parity
+7 110 1100
+5 111 1111
+3 101 1010
+1 100 1001
-1 000 0000
-3 001 0011
-5 011 0110
-7 010 0101
n
b
b
s
line coder
n
a
s ( t )
∞
= −∞
n
n b
s ( t ) a f ( t nT )
u where X
n
is the n
th
data bit.
u In addition, the pulse shape for unipolar NRZ is:
u Where T
b
is the bit period.
=
=
when 0
when 1
0
n
n
n
X
A X
a
b
t
f ( t )
1 1 1 1
0 0
b
b
b
b
b
NRZ pulse shape
=
=
=
when 0
when 1
0
n
n
n
X
X A
a
b
t
f t
1 0 1 1 1 0
b
b
b
b
b
RZ pulse shape
u Polar NRZ uses NRZ pulse shape.
u Polar RZ uses RZ pulse shape.
=
=
−
=
when 0
when 1
n
n
n
X
X
A
A
a
1 0 1 1 1 0
Polar NRZ
Polar RZ
u Manchester codes have built in timing information
because they always have a zero crossing in the
center of the pulse.
u Polar RZ codes tend to be good because the signal
level always goes to zero for the second half of the
pulse.
u NRZ signals are not good for self-synchronization.
u Polar codes perform better (are more energy efficient)
than Unipolar or Bipolar codes.
u We need to find the PSD of the line codes to answer
this ...
n
u Symbol mapping functions.
Ü Unipolar
Ü Polar
Ü Bipolar (a.k.a. alternate mark inversion, pseudoternary)
u Pulse shapes.
Ü NRZ (Nonreturn-to-zero)
Ü RZ (Return to Zero)
Ü Manchester (split phase)
∞
= −∞
n
n b
s ( t ) af ( t nT )
u Model s(t) as a WSS random process
u Find the autocorrelation function of s(t)
Ü this step can be tricky!
u Apply Wiener-Khintchine theorem to get PSD.
∞
= −∞
− −
= Π
n b
b d
n
T
t nT T
s ( t ) a
Where: P[a
n
=A] = P[a
n
= -A]
a
n
’s are independent
T
d
is uniform on [0,T
b
)
τ = Λ
b
s
t
2
2 2
s b b
P f = AT Sa π fT
u Where F(f) is the F.T. of the pulse shape.
2
2
( ) F ( f )
T
A
P f
b
s
=
= + δ −
∑
∞
b bn = −∞ b
s
T
n
f
T
F f
T
A
P f
1
( ) 1
4
( )
2
2
( ) ( ) sin( )
2
2
2
b
b
s
F f fT
T
A
P f = π