Motorola DSP96002 User Manual page 660

32-bit digital signal processor
Table of Contents

Advertisement

fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+n4,d7.s 1
fmpy d4,d7,d3 fadd.s d3,d2 x:(r0)+,d4.s y:(r4)+,d1.s
move d2.s,y:(r5)+n5 d5.s,d1.s
move (r5)+
endall
B.1.58
Sine Wave Oscillators
page
fs
equ
f0
equ
mag
equ
scale
equ
output
equ
org
move
fclr
do
fmpy.x
fadd.s
fsub.x
move
_gen
MOTOROLA
fadd.s d3,d2
Double Integrator Oscillator
132,60,1,1
8192.0
256.0
1.0
(2.0*@sin(3.14159*f0/fs))*(2.0*@sin(3.14159*f0/fs))
$ffff
p:$100
#scale,d7.s
d6
#mag,d5.s
#100,_gen
d7,d6,d0
d0,d5
d5,d6
d5.s,y:output
Second Order Oscillator
DSP96002 USER'S MANUAL
;junk to d1.s
y:(r4)+n4,d7.s 1
;sampling frequency
;center frequency
;magnitude
;output file
;init scale factor
;init magnitudes
;do 100 points
;output signal
1
1
1
---
---
Totals: 286
4399
Program
Icycles
Words
1
1
1
---
---
Totals:
3
Program
Icycles
Words
1
1
1
1
1
1
1
1
1
1
1
1
1
1
3
B-141

Advertisement

Table of Contents
loading

Table of Contents