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

Jack Sparrow's Friends

  • Hollis Milroy

Gifts Received

Gift

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



Continue

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

Comment Wall (2 comments)

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

Join Personal Mechatronics Lab

At 1:28pm on May 9, 2018, mrs abiola bawuah said…

Good Day,


How is everything with you, I picked interest on you after going through your short profile and deemed it necessary to write you immediately.I have something very vital to disclose to you, but I found it difficult to express myself here, since it's a public site.Could you please get back to me on this email(mabawuah11@gmail.com  ) for the full details,
Have a nice day

Thanks God bless.


Mrs Abiola.

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.

 
 
 

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service