13) Assume all the pins in the PiOC PDSR (Pin Data Status Register) are PIOC->PI
ID: 2249098 • Letter: 1
Question
13) Assume all the pins in the PiOC PDSR (Pin Data Status Register) are PIOC->PIO SODROxAB P10C->PIO CODR = 0x86; What is the value of the PIOC PDSR register after these two 1ines a) 0x0 b) 0x9 d) 0xA Questions 14&15. The following 32-bit register (reg32) must be configured wih the following field-value pairs: MAXFILT-9, SWAP-1, INVIDX-1, INVA-1, SPEEDEN-1, ODEN-1, and TC1XC1S3. 27 25 24 31 30 21 20 19 18 17 16 15 14 12 10 14) Write an assignment expression in the c programming language reg 32 = 5) Determine the hexadecimal value of this mask alue OxExplanation / Answer
Answer13) 0xAB = 1010_1011 and 0xB6 = 1011_0110. The value in PDSR is 0000_1001 i.e 0x9. So option b is correct. First 0xAB is copied into PDSR, then clear those bit in PDSR for which CODR has bit value 1.
14) Assuming rest bits have value zero, we can write the value in binary as-
0000_0000_1001_0001_1010_0101_0000_1100. It's in decimal as 9544972. Hence assignment operation in C is-
reg32 = 9544972;
15) In hexadecimal the above binary can be written as 0x91A50C. Hence we can write as-
reg32 = 0x91A50C.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.