Mathcad - Amsignal

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

filename: amsignal.

mcd
last edit date:03/13/09 avo

fm := 1KHz Modulating frequency Am := 1 Modulating amplitude

fc := 10KHz Carrier frequency Ac := 1 Carrier amplitude

μ am := 0.5 AM modulation index

(
m ( t) := Am⋅ cos 2⋅ π ⋅ fm⋅ t ) (
c ( t) := Ac⋅ cos 2⋅ π ⋅ fc⋅ t )
sdsb ( t) := m ( t) ⋅ c ( t)

(
Envelope ( t) := Ac⋅ 1 + μ am⋅ m ( t) ) ( )
sAM ( t) := 1 + μ am⋅ m ( t) ⋅ c ( t)

set up time vector, set to power of 2 to ease FFT calculation

8
N := 2 number of points n := 0 .. N − 1 N = 256
2
tmax := display 2 cycles of lowest frequency
fm

tmax
dt := tn := dt⋅ n create time vector
N

1 1
= 500
tmax s

Waveforms
1
Volts

1
5 .10
4
0 0.001 0.0015 0.002

time
Carrier Voltage
Modulation Voltage
DSB-SC and Envelopes
1
Volts

1
5 .10
4
0 0.001 0.0015 0.002

Time
s(t)
m(t)
positive envelope
negative envelope

N
k := 0 .. −1 index for FFT
2 ⎯⎯→
length ⎛ sdsb ( t)⎞ = 256
⎯⎯→ ⎝ ⎠
DSB := FFT ⎛ sdsb ( t)⎞ Calculate FFT
⎝ ⎠ length ( DSB) = 129

DSB-SC Voltage Spectrum


1
Volts peak

0.5

0
1 .10 1.5 .10 2 .10
4 4 4
0 5000

Frequency Hz
************************************************************************************************************
AM Modulation Index: μ am = 0.5

AM and Envelopes
2

1
Volts

2
5 .10
4
0 0.001 0.0015 0.002

Time
s(t)
Positive Envelope
Negative Envelope

N
k := 0 .. −1 index for FFT
2 ⎯⎯→
length ⎛ sdsb ( t)⎞ = 256
⎝ ⎠
⎯⎯⎯→
AM := FFT ⎛ sAM ( t)⎞ Calculate FFT
⎝ ⎠ length ( DSB) = 129
AM Modulation Voltage Spectrum
1

Volts peak double sided

2 AMk 0.5

0
6 8 10 12 14
1 k

dt⋅ N 1000
Frequency Hz

AM Power
0.5

0.4

0.3
Watts

2⋅ ( AMk )2
0.2

.125
0.1

0
6 8 10 12 14
1 k

dt⋅ N 1000
Time

You might also like