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, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
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, 15.04.2021 18:40
question
English, 15.04.2021 18:40
question
English, 15.04.2021 18:40
question
Mathematics, 15.04.2021 18:40
question
Mathematics, 15.04.2021 18:40
question
Biology, 15.04.2021 18:40
question
Mathematics, 15.04.2021 18:40
Questions on the website: 13722363