B.1.13 Sine-Wave Generation; Figure B-11 Sine Wave Generator-Double Integration Technique - Motorola DSP56800 Manual

16-bit digital signal processor
Table of Contents

Advertisement

B.1.13
Sine-Wave Generation
The following two sine-wave generation benchmarks are provided:
Double integration technique
Second order oscillator
B.1.13.1
Double Integration Technique
Figure B-11 gives a graphical overview of the double integration technique.
a = Stored initial value which is the
desired tone amplitude
Figure B-11. Sine Wave Generator—Double Integration Technique
opt
cc
clr
b
move
#$4000,a
move
#0,n
move
#$4532,y1
move
#$1,r1
move
y1,y0
do
x0,loop1
mac
y1,b1,a
mac
-y0,a1,b
loop1
move
;
;
B-20
x0
a
T
y1 = 2*sin( π Fs/F0)
F0 = Oscillation Frequency
Fs = Sampling Frequency
b,x:(r1)+n
b,x:(r1)
Total:
DSP56800 Family Manual
T
sin(w
t)
0
; 1
1
; 2
2
; 1
1
; 2
2
; 1
1
; 1
1
; 2
3
; 1
1
; 1
1
; 1
1
_______
13
2N+12
AA0089

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents