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 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
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
Social Studies, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
English, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
World Languages, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
question
Mathematics, 10.09.2020 17:01
Questions on the website: 13722363