Question: In order to do this: Write a program to output a square wave to turn on the LED connected at pin PL2 . then to

In order to do this: Write a program to output a square wave to turn on the LED connected at pin PL2 . then to make it high PORTL |= B00000100 and delay (1000) and to make it low PORTL &= B11111011 and delay (1000), but my question is how we can get the "PORTL &= B11111011" ? isnt it just flip the number (high) which might be PORTL|=B11111011? but then why is it "PORTL &= B11111011"?

Why we should use the AND not or?

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!