Oct 23, 2008 #1 K 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.
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.