piclist 2002\02\26\070719a >
Thread: lookup tables
www.piclist.com/techref/mems.htm?key=table
flavicon
face BY : Trevor Page email (remove spam text)



Hi all,

Really basic question for those of you who have experience with AVR devices.


I wish to implement a lookup table. On the AVR there doesn't appear to be an
instruction that's equivalent to the PIC's convenient "RETLW" instruction.
It seems that I need to actually have two instructions per lookup table
entry on the AVR, such as:

CPI Rd, value
BREQ an_address
CPI Rd, another_value
BREQ an_address

Am I missing something here? I feel there must be a method using one
instruction per enry, but I can't see how.

Cheers

Trev



The E-mail and any attachments hereto are strictly confidential and intended
solely for the addressee. If you are not the intended addressee please
notify the sender by return and delete the message. You must not disclose,
forward or copy this E-mail or attachments to any third party without the
prior consent of the sender.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


<9D262C5FCA25D411BB4900508BA54EAA03653756@exchange-b.saltaire.pace.co.uk>

See also: www.piclist.com/techref/mems.htm?key=table
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) lookup tables

month overview.

new search...