Question: GPIOs and DACs 4 x 5 = 2 0 Points Let the following be the configuration of the GPIOA _ MODER Register x unknown configuration

GPIOs and DACs4 x 5=20 Points
Let the following be the configuration of the GPIOA_MODER Register
x unknown configuration
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
x
x
1
1
x
x
x
x
0
0
x
x
0
0
x
x
a) Which of the GPIO Pins on Port A have been configured already, and in which mode?
b) Suppose you need to configure GPIO PA.5 for analog mode. Write the assembly program that accomplishes this task.
c) Suppose that the PA.5 will serve as the DAC output pin. What does the buffered output mode do, and will it be required in our configuration where PA.5 is connected to an LED with a small resistance?
d) Assuming a 12-bit resolution with a reference voltage of 5V, what is the minimum voltage jump that such a DAC can configure?
e) Assume that we have right-aligned data with 12-bit resolution. Show the value of the DHR when the value of the saw-tooth wave is 5V
DAC_DHR
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
Q5. Significant questions from the midterm

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 Electrical Engineering Questions!