Question: 4 . ( 2 0 pts ) Consider the GPIO memory map of STM 3 2 L 4 7 6 . ( 1 ) (

4.(20 pts) Consider the GPIO memory map of STM32L476.
(1)(2 pts) What is the numeric value of the memory address of the mode register of PE, i.e., GPIO
Port E?
(2)(2 pts) What is the numeric value of the memory address of the ODR of PE, i.e., GPIO Port E?
(3)(8 pts) Write C code to set PE.3 and PE7 as digital output pin, without modifying any other bits in
the registers in your code.
(4)(4 pts) What values should we put into the following mode register to set both PE.3 and PE7 as
digital output pin?
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
5
4
3
2
1
0
Value
(5)(4 pts) Write C code to set PE.3s output type as push-pull, and PE7s output type as open-drain,
without modifying any other bits in the registers in your code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!