QUESTION 1 1 A typical LM3S1968 GPIO port has A 8 inputoutpu
QUESTION 1
1. A typical LM3S1968 GPIO port has:
A.
8 input/output pins
B.
8x2 input/output pins
C.
12 input/output pins
D.
4 input/output pins
10 points
QUESTION 2
1. Can a GPIO pin be both an input and an output at the same time?
A.
Yes
B.
The program has to flip (toggle) between input and output using DriverLib subroutines
C.
Only when a weak pull-up is used
D.
No
10 points
QUESTION 3
1. According to the LM3S1968 product features list, what is the maximum number of GPIO pins?
A.
37
B.
52
C.
5
D.
61
10 points
QUESTION 4
1. Why configure a GPIO input pin with a weak pull-down resistor?
A.
The pull-down resistor limits current, similar to the resistor in an LED circuit.
B.
Using a pull-up resistor is what I was told to do.
C.
The pull-down resistor insures the input value is 1 (high) when no external circuit, e.g. a switch, is driving the pin.
D.
The pull-down resistor insures the input value is 0 (low) when no external circuit, e.g. a switch, is driving the pin.
10 points
QUESTION 5
1. Suppose you are reading GPIO PortB pin 6. What data values do you expect?
A.
64 and 0
B.
-128 and 0
C.
0 and 32
D.
0 and 1
10 points
QUESTION 6
1. Physical pins can be used for GPIO or an alternative function. What is the name of the signal for the alternative function for PortB<2>? (Assume the 100 pin LQFP package.)
A.
UART0Tx
B.
I2C0SDA
C.
I2C0SCL
D.
C1-
10 points
QUESTION 7
1. What is the base memory address of GPIO PortF?
A.
0x2000.0000
B.
0x4002.5000
C.
0x4000.4000
D.
0x4002.50000
10 points
QUESTION 8
1. GPIO PortF has a direction register, GPIODIR, what is the physical memory address of this register and the meaning of the register bits?
A.
GPIO control of direction, input or output, is controlled via an API.
B.
0x4002.5400, a zero bit indicates the GPIO pin is an input.
C.
0x4000.5400, a one bit indicates the GPIO pin is an input.
D.
0x4004.5400, a one bit indicates the GPIO pin is an input.
| A. | 8 input/output pins | |
| B. | 8x2 input/output pins | |
| C. | 12 input/output pins | |
| D. | 4 input/output pins |
Solution
1.Ans. A. 8 Input/Output Pins
2.Ans A YES
3Ans. B. Maximum number 52
4Ans C.
5Ans.A 64 & 0
6Ans. D. C1-(C1 minus)
7Ans B. 0X4002.5000
8Ans. B.



