Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The prelab for this is fairly quick. We will be using some pins on GPIOA as inputs and GPIOE as outputs. 1. Configure Port A

image text in transcribed
The prelab for this is fairly quick. We will be using some pins on GPIOA as inputs and GPIOE as outputs. 1. Configure Port A We want to put Port A pins 1, 2, 3 and 5 as digital inputs. Note that these are also used by the joystick, but we will be using them as external connections. Set the GPIOA MODER register, remember that '00' indicates a digital input. Register 31 30 29 28 27 26 25 24 |||23 22 21 20 19 18 17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0 MODER MODER15 MODER14 MODER13 MODER12 MODER MODER10S MODERO MODERS MODER7 MODER6 MODERS MODER4 MODER3 MODER2 MODER MODERO Mask Value Mask in hex:_ Value in hex: 2. Configure Port E We want to put Port E pins 10, 11, 12, and 13 as Digital Outputs. This is done in the GPIOE MODER register. Again, set this to binary 01 (digital output). Register 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 | 11 10 9 8 7 6 MODER MODER15 MODERI MODER13 MODER12 MODERII MODER10 MODER MODERS MODER MODER MODERS MODER4 MODER3 MODER2 MODERI MODERO Mask Value Mask in hex Value in hex: The prelab for this is fairly quick. We will be using some pins on GPIOA as inputs and GPIOE as outputs. 1. Configure Port A We want to put Port A pins 1, 2, 3 and 5 as digital inputs. Note that these are also used by the joystick, but we will be using them as external connections. Set the GPIOA MODER register, remember that '00' indicates a digital input. Register 31 30 29 28 27 26 25 24 |||23 22 21 20 19 18 17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0 MODER MODER15 MODER14 MODER13 MODER12 MODER MODER10S MODERO MODERS MODER7 MODER6 MODERS MODER4 MODER3 MODER2 MODER MODERO Mask Value Mask in hex:_ Value in hex: 2. Configure Port E We want to put Port E pins 10, 11, 12, and 13 as Digital Outputs. This is done in the GPIOE MODER register. Again, set this to binary 01 (digital output). Register 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 | 11 10 9 8 7 6 MODER MODER15 MODERI MODER13 MODER12 MODERII MODER10 MODER MODERS MODER MODER MODERS MODER4 MODER3 MODER2 MODERI MODERO Mask Value Mask in hex Value in hex

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions