Help me answer this Embedded System Question for “STM32F051C6 microController Programming” with detailed explanation.
Use the reference sheet below to solve the problem
Consider the bit masks shown in Table 3.1 below. Table 3.1: information relating to Question 3 Consider the operations below: 3.1 GPIOA ?> MODER ?= GPIO_MODER_MODER5_0; [2] 3.2 GPIOA > MODER ?= GPIO_MODER_MODER5_1; 3.3 GPIOA ? MODER \& = GPIO_MODER_MODER5; [2] 3.4 GPIOA > MODER ?=? GPIO_MODER_MODERS; [2] After each operation, determine the value of the GPIOA_MODER register. Assume that the value of the GPIOA_MODER register was 0×28000000 before each operation in Question 3.1, 3.2, 3.3 and 3.4, i.e. before the operation in Question 3.1 was executed the value of GPIOA_MODER was 0×28000000, before the operation in Question 3.2 was executed the value of GPIOA_MODER is 0×28000000, etc. Represent your answers in hexadecimal and binary values. In additional, determine the values of bit 11 and bit 10 and the mode of PA5. Complete your answer in the answer booklet in the format shown in Table 3.2. Do not write your answer on the question paper. Table 3.2: Template for your answer relating to Question 3
GPIO x port mode register ( MODER )(x=A,B,C,D,E or F) Reset Value (GPIOA): 0 b00101000000000000000000000000000 or 0×28000000 (all other ports): 0 b00000000000000000000000000000000 or 0×00000000 Bits 31 to 0: MODERy: GPIO Mode Configuration bits ( y= GPIO pin number [0,1,…,15]) 00= Digital Input Mode (reset state) 01= Digital Output Mode 10= Alternative Function Mode 11= Analog Mode Bitmask for GPIO pin 0 GPIO Pin 0, Bit 0: GPIO Pin 0. Bit 1: GPIO Pin 0. Bit 1 and Bit 0: Bitmask for GPIO pin 1 GPIO Pin 1, Bit 0: GPIO Pin 1, Bit 1: GPIO Pin 1, Bit 1 and Bit 0 : GPIO_MODER_MODERO_O GPIO_MODER_MODERO_1 GPIO_MODER_MODERO GPIO_MODER_MODER1_0 GP IO_MODER_MODER1_1 GP IO_MODER_MODER1 Ob00000000000000000000000000000001 Ob00000000000000000000000000000010 Ob00000000000000000000000000000011 Ob00000000000000000000000000000100 Ob00000000000000000000000000001000 Ob00000000000000000000000000001100