Question: Question 2 GPIO Ports Given the following code, answer 2a - 2d. == 0 {}; unsigned char port; SYSCTL_RCGCGPIO_R [= port; while ((SYSCTL_PRGPIO_R & port)

 Question 2 GPIO Ports Given the following code, answer 2a -2d. == 0 {}; unsigned char port; SYSCTL_RCGCGPIO_R [= port; while ((SYSCTL_PRGPIO_R& port) GPIO_PORTC_DIR_R &= ~0x43; GPIO_PORTC_DIR_R = 0x80; GPIO_PORTC_DEN_R I= 0x03; Question

2a What is the base address in hex for the GPIO PortC set of registers (assuming APB)? O Ox4000 6400 O OX4000 0000

Question 2 GPIO Ports Given the following code, answer 2a - 2d. == 0 {}; unsigned char port; SYSCTL_RCGCGPIO_R [= port; while ((SYSCTL_PRGPIO_R & port) GPIO_PORTC_DIR_R &= ~0x43; GPIO_PORTC_DIR_R = 0x80; GPIO_PORTC_DEN_R I= 0x03; Question 2a What is the base address in hex for the GPIO Port C set of registers (assuming APB)? O Ox4000 6400 O OX4000 0000 O Ox4000 6000 O Ox0000 6000 O Ox4000 4000 Question 2b What is the offset in hex for the GPIO Port C DIRECTION register address (assuming APB)? Note: The offset is used with the base address to specify the address of the I/O register in the microcontroller address space. O Ox6400 Ox6000 00x4000 6400 OOx Ox400 Question 2c What is the correct value in hex for variable port in this initialization code? Question 2d Based on this initialization code, which pins (or bits) of Port C are being configured as digital inputs and digital outputs? PCO Choose] digital input digital output not configured PC1 [Choose ] PC2 [Choose ] PC3 [Choose ] PC4 [Choose ] V PC5 [Choose ] PC6 [Choose ] PCZ [Choose ]

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 Databases Questions!