You have two weeks to work on this lab. This lab is due at the end of your assigned lab period the week of October 2nd. You have only one week for this lab. In addition to the lab work, you need to upgrade you simulator. The link for upgrading is on the ECEN3213 web page.
Program requirements:
Initialize register A to 0.
Load a value from Port E and add it to register A.
Use the simulator switches to set values on Port E.
Output the result to Port B.
Connect port B to the LCD for display.
Check for the value in register A to be 99, and stop when the value is exactly 99.
Connect a green diode to Pin 3 of Port A and light this diode while the program is running.
Connect a red diode to Pin 4 of Port A and light this diode when the program is stopped.
Questions to be demonstrated:
Does your program always stop at 99 when the input on Port E is 1?
Does it stop if the input is 2?
Does it always stop if you change the input value while it is running?
Answer the questions by demonstrating your program to the TA running with inputs of 1, and then 2, and then changing the
input on Port E while the program is running.
Please email comments and suggestions to DrAcken@acken.com and acken@okstate.edu