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