Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Subroutine using a lookup table

Status
Not open for further replies.

29rachman

New Member
Use the F690 template file.
Use the MP-Lab simulator to debug and execute the program.
Turn in the program source code. Comments are necessary to describe the operation. Turn in a screen shot of the File Register memory after the program has run.
1. write a subroutine that uses a lookup table to store the letters of your name in 7-bit ASCII, indexed by the letter position number. The subroutine should use the w register to receive the input parameter index number, and return the letter ASCII code in the w register.
2. Write a main program that uses indirect mode addressing in a loop to loop up each letter of the name using the subroutine and put it into the GPR starting at address 0x120.
 
Hi,
You have posted 3 homework questions, we would like to see what solutions you have worked out, please post them.?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top