1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alik [6]
3 years ago
11

Suppose you are writing your own high levels functions to read and write the digital pins. a. Write 9 "#define" macros for PINB,

C,D, PORTB,C,D and DDRB,C,D, so that you can use them in part b. b. Write the C code to set up the PIN,PORT, and DDR registers for the following functions. Be sure to consider all possible input cases,ranges, etc. WriteGPIOhigh(int port, unsigned char mask) //port=0 means PORTB, 1=PORTC, 2=PORTD //mask = 8 bit mask indicating which pins to write high. Ex. 0001 0010= Write bit 1 and 4 high WriteGPIOlow(int port, unsigned char mask) //port=0 means PORTB, 1=PORTC, 2=PORTD //mask = 8 bit mask indicating which pins to write low. Ex. 0010 0001= Write bit 0 and 5 low EnableGPIOpullup(int port, unsigned char mask) //port=0 means PORTB, 1=PORTC, 2=PORTD //mask = 8 bit mask indicating which pins to enable pullup. unsigned char readGPIOport(int port) //port=0 means PORTB, 1=PORTC, 2=PORTD //returns all 8 pins from port "port" by way of an unsigned char Are the above functions sufficient to completely implement GPIO functionality? If not propose modifications or additions necessary to completely implement full GPIO functionality.
Engineering
1 answer:
deff fn [24]3 years ago
7 0

Answer:

Please see the attached file for the complete answer.

Explanation:

Download pdf
You might be interested in
Compare the use of a low-strength, ductile material (1018 CD) in which the stress-concentration factor can be ignored to a high-
kicyunya [14]

Answer:

Step 1 of 3

Case A:

AISI 1018 CD steel,

Fillet radius at wall=0.1 in,

Diameter of bar

From table deterministic ASTM minimum tensile and yield strengths for some hot rolled and cold drawn steels for 1018 CD steel

Tensile strength

Yield strength

The cross section at A experiences maximum bending moment at wall and constant torsion throughout the length. Due to reasonably high length to diameter ratio transverse shear will be very small compared to bending and torsion.

At the critical stress elements on the top and bottom surfaces transverse shear is zero

Explanation:

See the next steps in the attached image

5 0
4 years ago
Look at the home page of the Internet Society (www.internetsociety.org) and read about one of the designers of the original ARPA
krek1111 [17]

Answer:

<u>ARPANET is the direct precedent for the Internet, a network that became operational in October 1969 after several years of planning. </u>

Its promoter was DARPA (Defense Advanced Research Projects Agency), a US government agency, dependent on the Department of Defense of that country, which still exists.

Originally, it connected research centers and academic centers to facilitate the exchange of information between them in order to promote research. Yes, being an undertaking of the Department of Defense, it is understood that weapons research also entered into this exchange of information.

It is also explained, without being without foundation, that the design of ARPANET was carried out thinking that it could withstand a nuclear attack by the USSR and, hence, probably the great resistance that the network of networks has shown in the face of major disasters and attacks.

It was the first network in which a packet communication protocol was put into use that did not require central computers, but rather was - as the current Internet is - totally decentralized.

Explanation:

<em><u> Below I present as a summary some of the most relevant aspects exposed on the requested website about the origin and authors of ARPANET:</u></em>

<em><u></u></em>

1. Licklider from MIT in August 1962 thinking about the concept of a "Galactic Network". He envisioned a set of globally interconnected computers through which everyone could quickly access data and programs from anywhere. In spirit, the concept was very much like today's Internet. He became the first head of the computer research program at DARPA, and from October 1962. While at DARPA he convinced his successors at DARPA, Ivan Sutherland, Bob Taylor and MIT researcher Lawrence G. Roberts, of the importance of this network concept.

2.Leonard Kleinrock of MIT published the first article on packet-switching theory in July 1961 and the first book on the subject in 1964. Kleinrock convinced Roberts of the theoretical feasibility of communications using packets rather than circuits, That was an important step on the road to computer networking. The other key step was to get the computers to talk together. To explore this, in 1965, working with Thomas Merrill, Roberts connected the TX-2 computer in Mass. To the Q-32 in California with a low-speed phone line creating the first wide-area (albeit small) computer network built . The result of this experiment was the understanding that timeshare computers could work well together, running programs and retrieving data as needed on the remote machine, but that the circuitry switching system of the phone was totally unsuitable for the job. Kleinrock's conviction of the need to change packages was confirmed.

3.In late 1966 Roberts went to DARPA to develop the concept of a computer network and quickly developed his plan for "ARPANET", and published it in 1967. At the conference where he presented the document, there was also a document on a concept of UK packet network by Donald Davies and Roger Scantlebury of NPL. Scantlebury told Roberts about NPL's work, as well as that of Paul Baran and others at RAND. The RAND group had written a document on packet switched networks for secure voice in the military in 1964. It happened that work at MIT (1961-1967), in RAND (1962-1965) and in NPL (1964-1967) all they proceeded in parallel without any of the investigators knowing about the other work. The word "packet" was adopted from the work in NPL and the proposed line speed to be used in the ARPANET design was updated from 2.4 kbps to 50 kbps.

6 0
3 years ago
1. A four-lane freeway (two lanes in each direction) is located on rolling terrain and has 12-ft lanes, no lateral obstructions
otez555 [7]

Answer:

Maximum number of vehicle = 308

Explanation:

See the attached file for the calculation.

6 0
4 years ago
Which of the following reduces friction in an engine A)wear B)drag C)motor oil D)defractionation
kobusy [5.1K]

It is motor oil, as oil is used to reduce friction

3 0
3 years ago
Read 2 more answers
Suppose you were doing an A* search and there were a number of different ways that you could compute an admissible heuristic val
Elodia [21]

Answer:

Explanation:

First of all,we need to know what kind of research and how important it is before determining which computation method to use .

Then compare end result of research and cost of  expensive methods .

Then we should opt for the best expensive method to be used for the given application.

5 0
3 years ago
Other questions:
  • What happens when a larger force is applied?
    9·1 answer
  • A composite wall is composed of 20 cm of concrete block with k = 0.5 W/m-K and 5 cm of foam insulation with k = 0.03 W/m-K. The
    13·1 answer
  • You want to know your grade in Computer Science, so write a program that continuously takes grades between 0 and 100 to standard
    7·1 answer
  • You are watching the weather forecast and the weatherman says that strong thunderstorms and possible tornadoes are likely to for
    15·1 answer
  • Might give brainliest
    8·1 answer
  • How should you move your board through the planer? (Pick two choices.)
    8·1 answer
  • What parts do all circuits have in common?
    9·2 answers
  • Write a Nested While Loop that will increment the '*' from 1 to 10.
    6·1 answer
  • Suppose a contract states that the designer should bear the responsibility if substantial differences were found between the des
    13·1 answer
  • Determine the initial void ratio, the relative density and the unit weight (in pounds per cubic foot) of the specimens for each
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!