Jack Sparrow
  • Toronto, ON
  • Canada
Share on Facebook Share on Facebook Share
  • Blog Posts (1)
  • Discussions
  • Groups
  • Photos
  • Photo Albums
  • Videos

Jack Sparrow's Friends

  • Hollis Milroy

Gifts Received


Jack Sparrow has not received any gifts yet

Give a Gift


Jack Sparrow's Page

Jack Sparrow's Blog

PIC16 Table Lookups - A Guide

A table lookup on the PIC16 basically takes the following steps:

  • Get the address of index zero of the table
  • Add the table index to the address
  • Jump to that address

The table itself is a sequence of retlw instructions, which put a value into W and return. (dt and related directives are just assembler shorthand for inserting many retlws.)

A first try at implementing a table lookup thus looks like this:…


Posted on January 28, 2011 at 1:00am — 6 Comments

Comment Wall (1 comment)

You need to be a member of Personal Mechatronics Lab to add comments!

Join Personal Mechatronics Lab

At 5:33pm on January 28, 2011, Ritchie Thai said…

If you don't mind my asking, and feel free to decline if you do, who are you if not a student or TA of the course. Just a helpful engineering student who was told about the site? Based on what I was told, AER201 students this year are the first people to ever actually use the site.


© 2018   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service