Question

2. Given the following setup for GPIO (fill in all the blanks, refer to pages 1-4) GPIOB_MODER 0x10000 //GPIOB_OTYPER is not needed as its default value is zero GPIOB_OSPEEDRI=0x3000; GPIOBPUPDRI= 0x80; - a. Which port is being initialized? Port b. Describe the important features from the initialization for pin 3 Ifor example input, output, alternate function, analog, pull up, pull down, push/pull, open drain out, speed, etc.). Px3 is initialized to be c. Which pin is being initialized as an output and what are its important features? Px 2 is initialized to be a digital output with 4 d. We want to connect an LED to one of the pins and a push button to the other. Show a diagram of how we would connect these items and the port pins to which they are connected. e. Write a simple 2-line code that will read the state of the push button, load it into a variable called state and write the value to the LED (you do not.need to initialize the variable).
0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
2. Given the following setup for GPIO (fill in all the blanks, refer to pages 1-4)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • I need help with doing these tasks for code composer Lab 3 - Branching, Push Button...

    I need help with doing these tasks for code composer Lab 3 - Branching, Push Button and LEDs-Reading Assignment in this lab, we are going to control a LED via a push button- using general purpose digital 10 for both input (button) and output (LED) on port 1 - using Code Composer Studio. Furthermore, we are going to use a branch instruction to create an IF-ELSE structure in assembly to determine if the LED should be lit up based on...

  • i posted device what i use Introduction Project 1 is designed to increase famiarty with Amel Studia, the Atmel So...

    i posted device what i use Introduction Project 1 is designed to increase famiarty with Amel Studia, the Atmel Software Framework, and te N ELVIS Il electrical test and measurement บnten. In addeen, it as LEDs vd pushbumons (overs concepts such as de-bouncing pushb.nors, ล"d sina ig and sorong with a microcontroler Materials 1 SAMD21 or SAMN25 Xpuined Pro Evaluation Board 2 LED 3300 resistor 4) 10k resistor S Push buttorn hamper wees Breadboar 8 SAMD21 Datasheet Equipment NI ELVIS...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT