PCLATH in sine LUT - help needed

Status
Not open for further replies.

kvrajasekar

Junior Member level 3
Joined
Sep 18, 2008
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,517
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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…