exp_decay

2
Exponential decay implemented digitally N1AL 6/8/2009 Let's compare the exponential decay of the above circuit to that of an analog R-C network to see if we have the correct equation for the time constant. n 100 i 0 n .. The analog circuit starts at time zero (with value 1.0). j 1 n .. For the digital circuit, we assume there was a pulse at the input with value 1.0 at time zero. δ 1 4 τ 1 δ 1 2 This is the equation for time constant that we want to check. The time constant τ is in units of sample period. D 0 1 D j 1 δ ( )D j 1 . Digital circuit response. Analog circuit response A i e i τ A i D i i 0 5 10 15 20 0 0.2 0.4 0.6 0.8 1 Analog vs digital exponential decay It works pretty well even for large δ. (The approximation is best for small δ / large time constant, τ .) 1

Upload: mike-menache

Post on 12-Mar-2016

218 views

Category:

Documents


0 download

DESCRIPTION

Analog vs digital exponential decay 1 2 1 i τ Ai Di 0.2 0.4 0.6 0.8 0 1 i 1

TRANSCRIPT

Page 1: exp_decay

Exponential decay implemented digitally N1AL 6/8/2009

Let's compare the exponential decay of the above circuit to that of an analog R-C network to see if we have the correct equation for the time constant.

n 100 i 0 n.. The analog circuit starts at time zero (with value 1.0).

j 1 n.. For the digital circuit, we assume there was a pulse at the inputwith value 1.0 at time zero.

δ 1

4τ 1

δ1

2This is the equation for time constant that we want to check.The time constant τ is in units of sample period.

D0

1 Dj

1 δ( ) Dj 1

. Digital circuit response.

Analog circuit responseA

ie

i

τ

Ai

Di

i0 5 10 15 20

0

0.2

0.4

0.6

0.8

1Analog vs digital exponential decay

It works pretty well even for large δ. (The approximation is best for small δ / large time constant, τ.)

1

Page 2: exp_decay

1