hi all
i have got a code for TMS320C5416 for generating sine wave. sine.out file gets created without any warnings or errors but i cannot see the output graph.
i have selected view->graph->time/frequency, but can't find any graph being plotted.
where is the problem?some settings needed to be done in graph property or somewhere else?i am not finding any way to see my graph.
please help
.mmregs
.def d_x,d_squr_x,d_coff,d_sinx,C_1
d_coff .sect "coeff"
.word 01c7h
.word 030bh
.word 0666h
.word 1556h
.global _c_int00
d_x .usect "sin_vars",1
d_squr_x .usect "sin_vars",1
d_temp .usect "sin_vars",1
d_sinx .usect "sin_vars",1
C_1 .usect "sin_vars",1
.text
_c_int00:
STM #d_coff,AR3 ; c1=1/72,c2=1/42,c3=1/20,
; c4=1/6
STM #d_x,AR2 ; input value
STM #C_1,AR4 ; A1, A2, A3, A4
sin_angle:
LD #d_x,DP
ST #6487h,d_x ; pi/4
ST #7fffh,C_1
SQUR *AR2+,A
ST A,*AR2 ; AR2 -> x^2
|| LD *AR4,B ;
MASR *AR2+,*AR3+,B,A ; (1-x^2)/72
MPYA A ; 1-x^2(1-x^2)/72
; T = x^2
STH A,*AR2
MASR *AR2-,*AR3+,B,A ; A = 1-x^2/42(1-x^2/72)
; T =x^2(1-x^2/72)
MPYA *AR2+ ; B = A(32-16)*x^2
ST B,*AR2 ;
|| LD *AR4,B ; B = C_1
MASR *AR2-,*AR3+,B,A ; A = 1-x^2/20(1-x^2/42(1-x^2/72)
MPYA *AR2+ ; B = A(32-16)*x^2
ST B,*AR2
|| LD *AR4,B
MASR *AR2-,*AR3+,B,A ; AR2 -> d_squr_x
MPYA d_x
STH B, d_sinx ; sin(theta)
RET
.end