subject

My arm based microcontroller has 32 one bit sized gpio ports in a port group. i can use these 32gpio ports for connecting to a port of any width between 1 and 32 (as long as pin placement matches).the port group has a 32 bit dir register and each one bit port in the port group has a corresponding dirregister bit in the 32 bit dir register. the dir register is implemented at address 0x41004400 (for port1).consider the two cases - first when i use all 32 ports as a single 32 bit wide port and the second casewhen i use all 32 bit ports as individual 1 bit wide ports. for both these cases to work, my dir registermust be word-accessible as well as bit accessible. write a program to show how you will provide bothword as well as bitwise access to the dir register. your program must use an appropriate data structurefor the register and allow it to be accessed either in bit-wide accesses or in a word-wide access. for output-a. store 0 in the dir register instance with a word-wise access. b. access it using bit-wise access to set bit 3.c. access it using word-wise access to print the value of the 32 bit register. d. access it using word-wise access to set bit 7 without changing other bits. e. access it using bit-wise access to print the value of bit 7.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
question
Computers and Technology, 25.06.2019 06:00
Shaniya has misspelled a scientific name in her biology report. she needs to correct it, but she has no access to a computer. she plans to use the word app on her phone without an office 365 subscription. can shaniya correct her mistake? why or why not? yes, she can navigate the window and do simple editing. yes, she can use this application for free and navigate the window. no, her document is “read-only,” so she cannot navigate the window. no, her application has limited features and she cannot access the documen
Answers: 1
question
Computers and Technology, 25.06.2019 07:30
What does the hard disk drive do? it stores all of the information on a computer. it controls a computer’s operating system. it enables visual interaction with a computer. it contains all of a computer’s internal parts.
Answers: 1
You know the right answer?
My arm based microcontroller has 32 one bit sized gpio ports in a port group. i can use these 32gpio...
Questions
question
Mathematics, 07.04.2020 20:32
question
Mathematics, 07.04.2020 20:32