piclist 2002\02\26\142558a >
Thread: lookup tables
www.piclist.com/techref/mems.htm?key=table
picon face BY : wouter van ooijen & floortje hanneman email (remove spam text)



> 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:

I recall that there are more efficeint ways than 2 instrcutions per value,
but not down to one. Look around on Atmel's website for an appnote about
'implementing table lookup on the 1200' or something like that.

Wouter

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


<094f01c1bea3$f909cbc0$0500a8c0@home> 7bit

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...