Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

One question with subparts relating to question, please do all subparts Lighting Multiple LEDs Suppose 12 LEDs connect 12 GPIO pins PE15-PE12(bit 11-8). PA3-PAO(bit 7-4),

One question with subparts relating to question, please do all subparts

image text in transcribed

Lighting Multiple LEDs Suppose 12 LEDs connect 12 GPIO pins PE15-PE12(bit 11-8). PA3-PAO(bit 7-4), and PB7-PB4 (bit 3-0) from MSB(bit 11) to LSB (bit 0). Complete the following C expressions (E1-E6) for output 12 bit value t to ODRs. void assign(uint32_t t) { GPIOE->ODR & E1 // clear ODR bits GPIOE-ODRE E2 //output ODR bits GPIOA--ODR & LE3 ://clear ODR bits GPIOA-ODRE E4 //output ODR bits GPIOB-ODR & E5 //clear ODR bits GPIOB-ODR =- E6 // output ODR bits 17. What is the expression for E1? * 2 points Your answer 18. What is the expression for E2? 2 points Your answer 19. What is the expression for E3? 2 points Your answer 20. What is the expression for E4? 2 points Your answer 21. What is the expression for E5? 2 points Your answer 22. What is the expression for E6? 2 points Your answer Lighting Multiple LEDs Suppose 12 LEDs connect 12 GPIO pins PE15-PE12(bit 11-8). PA3-PAO(bit 7-4), and PB7-PB4 (bit 3-0) from MSB(bit 11) to LSB (bit 0). Complete the following C expressions (E1-E6) for output 12 bit value t to ODRs. void assign(uint32_t t) { GPIOE->ODR & E1 // clear ODR bits GPIOE-ODRE E2 //output ODR bits GPIOA--ODR & LE3 ://clear ODR bits GPIOA-ODRE E4 //output ODR bits GPIOB-ODR & E5 //clear ODR bits GPIOB-ODR =- E6 // output ODR bits 17. What is the expression for E1? * 2 points Your answer 18. What is the expression for E2? 2 points Your answer 19. What is the expression for E3? 2 points Your answer 20. What is the expression for E4? 2 points Your answer 21. What is the expression for E5? 2 points Your answer 22. What is the expression for E6? 2 points Your

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_2

Step: 3

blur-text-image_3

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What is a Treasury regulation? Is it binding on the courts?

Answered: 1 week ago

Question

What about leadership lessons from particularly good or bad bosses?

Answered: 1 week ago