how to read LUT in pic18f452?

Status
Not open for further replies.

hirataqdees

Newbie level 5
Joined
Dec 19, 2009
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
pakistan
Activity points
1,354
hey

can anyone tell me how to read LUT is pic..it is a bit urgent

i want to read a 4 bit value corresponding a valu in a red..total are 256 choices.i vave made LUT as


ORG 0X870


TABLE1
DB '00.0','00.2','00.5','00.7','01.0','01.2','01.5','01.7','02.0','02.2','02.5','02.7'

DB '03.0','03.2','03.5','03.7','04.0','04.2','04.5','04.7','05.0','05.2','05.5','05.7'

DB '06.0','06.2','06.5','06.7','07.0','07.2','07.5','07.7','08.0','08.2','08.5','08.7'

DB '09.0','09.2','09.5','09.7','10.0','10.2','10.5','10.7','11.0','11.2','11.5','11.7'

DB '12.0','12.2','12.5','12.7','13.0','13.2','13.5','13.7','14.0','14.2','14.5','14.7'

DB '15.0','15.2','15.5','15.7','16.0','16.2','16.5','16.7','17.0','17.2','17.5','17.7'

DB '18.0','18.2','18.5','18.7','19.0','19.2','19.5','19.7','20.0','20.2','20.5','20.7'

DB '21.0','21.2','21.5','21.7','22.0','22.2','22.5','22.7','23.0','23.2','23.5','23.7'

DB '24.0','24.2','24.5','24.7','25.0','25.2','25.5','25.7','26.0','26.2','26.5','26.7'

DB '27.0','27.2','27.5','27.7','28.0','28.2','28.5','28.7','29.0','29.2','29.5','29.7'

DB '30.0','30.2','30.5','30.7','31.0','31.2','31.5','31.7','32.0','32.2','32.5','32.7'

DB '33.0','33.2','33.5','33.7','34.0','34.2','34.5','34.7','35.0','35.2','35.5','35.7'

DB '36.0','36.2','36.5','36.7','37.0','37.2','37.5','37.7','38.0','38.2','38.5','38.7'

DB '39.0','39.2','39.5','39.7','40.0','40.2','40.5','40.7','41.0','41.2','41.5','41.7'

DB '42.0','42.2','42.5','42.7','43.0','43.2','43.5','43.7','44.0','44.2','44.5','44.7'

DB '45.0','45.2','45.5','45.7','46.0','46.2','46.5','46.7','47.0','47.2','47.5','47.7'

DB '48.0','48.2','48.5','48.7','49.0','49.2','49.5','49.7','50.0','50.2','50.5','50.7'

DB '51.0','51.2','51.5','51.7','52.0','52.2','52.5','52.7','53.0','53.2','53.5','53.7'

DB '54.0','54.2','54.5','54.7','55.0','55.2','55.5','55.7','56.0','56.2','56.5','56.7'

DB '57.0','57.2','57.5','57.7','58.0','58.2','58.5','58.7','59.0','59.2','59.5','59.7'

DB '60.0','60.2','60.5','60.7','61.0','61.2','61.5','61.7','62.0','62.2','62.5','62.7'

DB '63.0','63.2','63.5','63.5'




it has 256 values each having 4 its.can any one tell me how to do ths?
regards

Added after 2 minutes:

and i want guidance in assembly....
 

There was a recent thread on this subject here:



It was for a Pic16f but I'm sure it will be similar for a Pic18.

The Pic18 has a table read instruction.
Attached is an app note using table read.
 

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…