Mathcad - Pulse Waveform
Mathcad - Pulse Waveform
filename:pulsewaveform.mcd
avo Last edit date: 1/21/14
sinc ( x) ≡ if ⎛⎜ x = 0 , 1 ,
δ ( f , R) ≡ if ( f = R , 1 , 0) sin ( π⋅ x) ⎞
⎟
⎝ π⋅ x ⎠
Λ ( t , T) ≡ if ⎛⎜ t ≤ , 1 −
T 2t ⎞
, 0⎟ rect ( t , T) ≡ if ⎡⎢⎛⎜ t ≤
T⎞ ⎤
⎟ , 1 , 0⎥
⎝ 2 T ⎠ ⎣⎝ 2⎠ ⎦
−6 −4
T := 400 × 10 period
⋅s D := 0.5 duty cycle τ := D⋅ T τ = 2 × 10 s pulse width
A := 2⋅ V 1 31 1 3
= 2.5 × 10 pps = 5 × 10 ⋅ Hz First null
T s τ
6
fmin := 0Hz fmax :=
N := 1000 T⋅ D
i := 0 .. N
fmax − fmin
Δf := f i := −fmax + i⋅ 2⋅ Δf
N wi := 2⋅ π⋅ f i
A⋅ τ
⋅ sinc ⎛⎜
n⋅ τ ⎞
c ( n) := ⎟ Fourier Series for repeatative pulse "double sided
T ⎝ T ⎠ spectrum"
c ( 0) = 1 V DC value
2 of4
1 3
Null bandwidth: = 5 × 10 ⋅ Hz
Pulse width: τ = 0.2⋅ ms τ
0.31885
DOUBLE SIDED, mV
0.2377
Xτ ( f i) ⋅ 10
3
0.15655
0.07541
−3
− 5.74266×10
− 0.08689
4 4 4 4
− 4×10 − 2×10 0 2×10 4×10
fi
Fourier Frequency
500
Cn in mV
3
c ( n) ⋅ 10
− 500
5 4 4 5
− 1×10 − 5×10 0 5×10 1×10
n
T
Fourier Frequency
3 of4
2 c ( 1)
Amplitude of fundamental as seen by scope FFT: = 0.9 V
2 n := 0 .. 25
800
3
2 c ( n) ⋅ 10
⋅ ( 1−δ ( n , 0) ) 600
mV rms
2
3 400
δ ( n , 0) ⋅ c ( n) ⋅ 10
200
0
4 4 4
0 2×10 4×10 6×10
n
T
Fourier Frequency
0 1 2 3 4 5 6 7 8 9 10
0 0 1 2 3 4 5 6 7 8 9 10 Harmonic
P= 1 1 0.9 .513·10-17 0.3 .513·10-17 0.18 .513·10-17 0.129 .513·10-17 0.1 .647·10-16
Vrms
2 0 -0.912 -325.173 -10.455 -325.173 -14.891 -325.173 -17.814 -325.173 -19.997 -311.544 dBV
3 13.01 12.098 -312.162 2.556 -312.162 -1.881 -312.162 -4.804 -312.162 -6.987 -298.534 dBm
L := 2 L
Power to Lth harmonic:
∑ (P1 , k)2 = 1.811 Watts
k=0
L
∑ (P1 , k)2
Percent of power to Lth Harmonic: k=0
= 90.528⋅ %
2
⎛ A ⎞ ⋅D
⎜ ⎟
⎝V⎠
4 of4
1
⌠ 2
Percent of total power in the null bandwidth: 2 ⎮ sinc ( x) dx = 90.282⋅ %
⌡0
⎛⌠ x ⎞
Percent of total power vs bandwidth: P ( x) := 2⎜ ⎮ sinc ( x) dx⎟ ⋅ 100
2
⎜ ⌡0 ⎟
⎝ ⎠ k := 0 , .25 .. 4
90 90
80
P ( k)
70
60
50
0 1 2 3 4
k
Note: k=1 is the null bandwidth of the spectrum.