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

Write a C statement to configure the lowest 4 pins of PORT A as outputs and the highest 4 pins
as inputs. Write the instruction using binary notation.
2) Write a C statement to configure all the pins of PORT C 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 PB6 and zero volts through the remaining pins
of PORT B. Write the instruction using binary notation, then do it using hexadecimal, and
decimal notation.
5) What is a pull up resistor and why do we need them in mechatronics?
6) Draw a typical circuit involving a pull up resistor? What is a typical value for a pull up resistor?
7) Write the necessary instructions to configure PORT A as an input port and then set via software
pull up resistors in all pins.
8) You want to check if the third bit of the register PINC is HIGH regardless of the value of the other
bits. You must use binary notation.
9) Set to zero the eight bit of register PORTA without changing the status of the other bits. You must
use binary notation.
10) Set to one the first bit of register PORTB without changing the status of the other bits. You must

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!