Question: 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

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

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

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!