Question: 1) Write a C statement to configure the lowest 4 pins of PORT A as inputs and the highest 4 pins as outputs. Write the

1) Write a C statement to configure the lowest 4 pins of PORT A as inputs and the highest 4 pins as outputs. Write the instruction using binary notation.

2) Write a C statement to configure all the pins of PORT B as outputs. Write the instruction using hexadecimal notation.

3) Write a C statement to configure all the pins of PORT D as inputs. Write the instruction using decimal notation.

4) Write a C statement to output 5 volts through pin PB7 and zero volts through the remaining pins of PORT B. Write the instruction using binary notation, then do it using hexadecimal, and decimal notation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!