Digital Electronics - The 8051 Microcontroller - Discussion

Discussion Forum : The 8051 Microcontroller - General Questions (Q.No. 11)
11.
The following program will receive data from port 1, determine whether bit 2 is high, and then send the number FFH to port 3:
READ: MOV A,P1
ANL A,#2H
CJNE A,#02H,READ
MOV P3,#FFH
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
16 comments Page 2 of 2.

Yash said:   1 decade ago
@Imtiyaz, they have asked to check the 2nd lsb i.e 2nd bit right why you want to know the whole digit.

Vaishnavi said:   1 decade ago
Only when AND operation is performed we will be able to identify if bit no-2 is high or not.

Khyati said:   1 decade ago
In the operand of CJNE, there is a address or data? please reply.

Mahesh said:   1 decade ago
But what is the necessary of adding it with 2H, please answer me?

Jithendra said:   9 years ago
How AND operation is performed? Please explain me.

Manish gundev said:   1 decade ago
Thanks abhi.


Post your comments here:

Your comments will be displayed after verification.