Question: In assembly code, the statement: mov.b #BIT0|BIT6, &P1OUT tells the microcontroller to make pins P1.0 and P1.6 on Port 1 HIGH (puts 3.3 volts on

In assembly code, the statement: mov.b #BIT0|BIT6, &P1OUT tells the microcontroller to make pins P1.0 and P1.6 on Port 1 HIGH (puts 3.3 volts on the pins ... turns them on). Alternative ways to write this command are:

mov.b #0x41, &P1OUT(Hex notation)

mov.b #01000001b, &P1OUT(Binary notation)

mov.b #65, &P1OUT (Decimal notation)

What are the three alternative ways of writing the following statement?

mov.b #BIT1|BIT5, &P1OUT

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!