kvrajasekar
Junior Member level 3
sine lut
Hi,
I want to generate sine LUT with 120 values.I did the following.But i can read upto 110 values,I dont know why it is happening...can any one help me to overcome this problem.
How effectively i can use PCLATH.
sine_loop
movf offctr,w
call sine_LUT
movwf vref_val
movf offctr,w
sublw 0x80
btfsc STATUS,Z
goto loopcompleted ;else continue.
incf offctr,1
goto sine_loop
sine_LUT
addwf pcl,f
dt 0x99,0x23......
-Raja.
Hi,
I want to generate sine LUT with 120 values.I did the following.But i can read upto 110 values,I dont know why it is happening...can any one help me to overcome this problem.
How effectively i can use PCLATH.
sine_loop
movf offctr,w
call sine_LUT
movwf vref_val
movf offctr,w
sublw 0x80
btfsc STATUS,Z
goto loopcompleted ;else continue.
incf offctr,1
goto sine_loop
sine_LUT
addwf pcl,f
dt 0x99,0x23......
-Raja.