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

P4.(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 262524232221181615141312119793210 Value (5)(4 pts) Write C code to set PE.3's output type as push-pull, and PE7's 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!