Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with Initializing and using GPIO ports for ARM Assembly. Introduction The Tiva Launchpad uses memory mapping to interface with I/O devices. This means

Need help with Initializing and using GPIO ports for ARM Assembly.

image text in transcribed

image text in transcribed

image text in transcribed

Introduction The Tiva Launchpad uses memory mapping to interface with I/O devices. This means that the actual physical devices such as pushbuttons and LEDs are accessed as if they are normal memory locations. The GPIO ports the pushbuttons and LEDs on the board are connected to must first be initialized before they can be used. Attempting to access GPIO pins that have not been correctly initialized will result in a Hard Fault which will effectively cause the board to stop executing your program. You must be very careful when writing to entire ports that you do not touch any pins that you are directly using. For this reason, you should not use the MOV instruction during this lab. Procedure I. Complete the initialization function PortF-Init', located in file "PortF.s" to initialize both of the pushbutton pins as inputs and the led pins as outputs. The figure on page 144 of your textbook can be used to determine what is connected to each pin. This figure can also be found in the appendix section of the online version of the textbook. Do not use the "MOV" instruction in any of the code you write. All of the LEDs should turn on if the initialization function is correct. Demonstrate this to the TA Introduction The Tiva Launchpad uses memory mapping to interface with I/O devices. This means that the actual physical devices such as pushbuttons and LEDs are accessed as if they are normal memory locations. The GPIO ports the pushbuttons and LEDs on the board are connected to must first be initialized before they can be used. Attempting to access GPIO pins that have not been correctly initialized will result in a Hard Fault which will effectively cause the board to stop executing your program. You must be very careful when writing to entire ports that you do not touch any pins that you are directly using. For this reason, you should not use the MOV instruction during this lab. Procedure I. Complete the initialization function PortF-Init', located in file "PortF.s" to initialize both of the pushbutton pins as inputs and the led pins as outputs. The figure on page 144 of your textbook can be used to determine what is connected to each pin. This figure can also be found in the appendix section of the online version of the textbook. Do not use the "MOV" instruction in any of the code you write. All of the LEDs should turn on if the initialization function is correct. Demonstrate this to the TA

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions