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
SETB 01H
Discussion:
26 comments Page 1 of 3.
Hope said:
1 decade ago
Why? I'm not getting the answer.
Rahul said:
1 decade ago
SETB instruction is used to set flag bit not to set addrress bit.
Dinesh said:
1 decade ago
Because there is no address specified.
Ashok said:
1 decade ago
Yes it is correct.
Dinesh said:
1 decade ago
01H is address of r1 register of bank0 ..... which is not a bit addressable
Prashant said:
1 decade ago
Only SETB instruction is used to set flag bit.
Shruti said:
1 decade ago
SETB works only to set/reset(0 to 1 or 1 to 0) bit addresable
and flag registers..it cannot be used for set/reset of address
and flag registers..it cannot be used for set/reset of address
Rocky said:
1 decade ago
Then, What is the correct answer???
RUDRASENAREDDY said:
1 decade ago
In order to access the 128 bits of RAM location and other bit addressable space of 8051 individually, we can use single bit instruction such as SETB.
Surya said:
1 decade ago
Yes this answer is absolutly correct because we can set the data not a address.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers