Digital Electronics - The 8051 Microcontroller - Discussion

Discussion Forum : The 8051 Microcontroller - General Questions (Q.No. 8)
8.
This statement will set the address of the bit to 1 (8051 Micro-controller):
SETB 01H
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
26 comments Page 2 of 3.

Raja said:   1 decade ago
Now a days many companies write the program for development of embedded product in c language there are some micros available to write and read the bit.

Write=Set_Bit (Px, bit no) ; /* x=either 0 or 1 or 2or 3*/.

Read=Is_Bit_Set (Px, bitno) ;.

Anji said:   1 decade ago
SETB performs operation on flag bits not on address.

Sde said:   1 decade ago
Port B nothing but parity flag.

Vinoth said:   1 decade ago
SETB sets the data in the given address & not set address.

Srinivas said:   1 decade ago
01h is byte address but setb is bit addressable instruction.

If you want to change the 01h data then you will use byte addressable instruction not use bit addressable instruction.

20h to 2fh have bit address so we will use this address.

Chirag Desai said:   1 decade ago
We can use SETB instuction on the specify PORTS only, e.g. SETB P0.0 or SETB P1.0.

Soumya said:   1 decade ago
SETB b - sets the address bit to 1, not SETB 01H.
(1)

Edison said:   1 decade ago
SETB instruction can be used in bit addressable memory location and bit operations.

Sharanya said:   1 decade ago
As far as I know, SETB instruction is used only to set/reset the bit addressable registers and flag registers but never are used to set an address.

Ramesh said:   1 decade ago
SETB is bit addressable but not byte addressable.


Post your comments here:

Your comments will be displayed after verification.