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
Get step-by-step solutions from verified subject matter experts
