Question: 1 . The statement P 1 DIR | = 0 x 0 1 ; will change P 2 IN by : a ) setting bit

1. The statement P1DIR |=0x01; will change P2IN by :
a) setting bit0 high and not effecting the other 7 bits
b) clearing bit0 low and not effect the other 7 bits
c) setting bit0 high and clearing the other 7 bits to low.
b) clearing bit0 low and setting the other 7 bits high.

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 Programming Questions!