Reading

Homework

Please type all homework and homework assigned this lesson is due at the beginning of class next lesson.

Integrity: Your honor is extremely important. This academic security policy is designed to help you succeed in meeting academic requirements while practicing the honorable behavior our country rightfully demands of its military. Do not compromise your integrity by violating academic security or by taking unfair advantage of your classmates.

  1. On our Launchpad processor, how many ports do we have for input/output?
  2. What is the difference between memory mapped I/O and port mapped I/O?
    1. Which does our processor use?
  3. What are the 6 important registers to setup a pin?
  4. What is the command(s) to set pin 4, port 2 as an output?
  5. What is the command(s) to set pin 4, port 2 as an input with a pull-up resistor?
  6. Write a code snippet to detect a button press and turn the Launchpad’s green LED on.

Resources