GPIO Documentation

Overview

The activity uses the section of code in the LED and Joystick demo main.c. Refer to the code starting at comment on line 113 (Set PB2 as output) up to but not including the begin main loop comment. The activity is to explain why this code does what the comments say based on the technical documentation. You must provide specific references to the technical documenation.

Answer the following questions:

  1. Explain the code for Set PB2 as output
  2. Explain the code for Set PE8 as output
  3. Explain the code for Set PE8 and PB2 output type as push-pull
  4. Explain the code for PE8 and PB2 output type as No pull-up no pull-down
  5. Explain the code for Set PA0, PA1, PA2, PA3, and PA5 as input
  6. Explain the code for Configure PA0, PA1, PA2, PA3, PA5 as pull-down

References

Submission

Submit your plain text document to the GPIO Documentation dropbox by the due date. Use the numbering as specified above for your answers. Be sure to include the actual page numbers of the document that is relevant. Identify the document as DS, RM, or Overview.