Mcrprcssrs & Mcrcmptr Sys

profileDahom
Assignment_3.pdf

P1DIR |= 0x01; P1DIR |= 0b00000001; P1DIR |= BIT0;

Assignment #3

Write a line of code that sets p1.7 as output.

Write a line of code that sets p1.5 and p1.2 as input.

Write a line of code that sets p1.7 and p1.3 as output.

Write a line of code that sets p1.2 and p1.4 and p1.7 as output.

Write a line of code that sets p2.7 as output.

Write a line of code that sets p2.3 as output.

Write a line of code that sets all I/O pins as input.

Write a line of code that sets all I/O pins as input.

Write a line of code that sets p1.6 as input.

Write a line of code that sets p1.0 as input.

Write a line of code that sets p1.2 as output.

Write a line of code that sets p1.3 as input.

Example: Write a line of code that sets p1.0 as output.

  • Sheet1