QUESTION 1 [15 MARKS] a) For a given STM32F103 microcontroller, the GPIOB = 0x0F02, what is the value of GPIOB after exe

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 1 [15 MARKS] a) For a given STM32F103 microcontroller, the GPIOB = 0x0F02, what is the value of GPIOB after exe

Post by answerhappygod »

Question 1 15 Marks A For A Given Stm32f103 Microcontroller The Gpiob 0x0f02 What Is The Value Of Gpiob After Exe 1
Question 1 15 Marks A For A Given Stm32f103 Microcontroller The Gpiob 0x0f02 What Is The Value Of Gpiob After Exe 1 (57.78 KiB) Viewed 36 times
QUESTION 1 [15 MARKS] a) For a given STM32F103 microcontroller, the GPIOB = 0x0F02, what is the value of GPIOB after executing the following instruction? GPIOB |=0x0078 b) For a given STM32F103 microcontroller-based system shown in Figure 1. Write a metal embedded C syntax/program to: (i) Set all clock used (ii) Configure all peripherals/GPIO used in this circuit BTN2 O BUTTON VCC CTS RTS TXD RXD VCC R2 10k DO R1 2K PA10 PAS LED-YELLOW PAS Figure 1 A 211 142 43 44. #3 49 50 56 U1 PMD-WKUP PAT PAZ PA3 PA4 PAS PAS www PAT PAB PAD PA10 PAI PA12 PA13 PA14 PAIS PBO PB1 P82 PEO PS4 PRS PDS PBS PB7 PBS PB9 PB10 PB11 PB12 PB13 PB14 PB15 NRST STM32F103RS POT PCS PCS M PC10 PC11 PC12 PC13 RTC PC14-05032 IN PC15-05032 OUT PC2 PC3 PCA POS POS OSCIN POO OSCOUT POT POZ [3 Marks] [CO1, PO1, C2] VBAT BOOTO 16 Marks] [CO1, PO1, C2]
c) For a given STM32F103 microcontroller, write a single metal embedded C instruction/syntax to perform the following operations: OPERATION Clear bit 4 in GPIOA Set bit 3,5 and 7 in GPIOB Toggle bit 6 in GPIOB SYNTAX/INSTRUCTION [6 Marks] [C01, PO1, C2]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply