Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago