Answered step by step
Verified Expert Solution
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
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 YourStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started