Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top