Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@thebigk • Nov 10, 2009
Post moved to new thread. -
@mahesh-E2tZ3t • Nov 10, 2009
Bit-addressable registers are registers that its bits can be modified individually. that means if you have register named "ACC" that is bit addressable , you can change its bits (D0 -D7) individually by special instructions SETB and CLR.
ex: SETB ACC.3 ; will set bit number 4 (remember bit 0) in the register
in 8051 there are many bit-addressable registers such as A (ACC), B, SCON, PCON, TCON, p0,p1,p2,p3 .
Source: net -
@elamparithi-lu4sGn • Nov 11, 2009
Thank u very much for your reply...but if i change the bit value in a register.... what happens to the contents of the registers... ?????mahesh_dahaleBit-addressable registers are registers that its bits can be modified individually. that means if you have register named "ACC" that is bit addressable , you can change its bits (D0 -D7) individually by special instructions SETB and CLR.
ex: SETB ACC.3 ; will set bit number 4 (remember bit 0) in the register
in 8051 there are many bit-addressable registers such as A (ACC), B, SCON, PCON, TCON, p0,p1,p2,p3 .
Source: net -
@shreya-rulz-ypF0sg • Nov 15, 2009
If you change the value of any bit in a register then the contents change to the new value that you have given..the only difference between usual registers and bit addressable ones is that you can access and modify the contents bit -wise for bit addressable ones.you dont have to change the value of the whole register to change value of a single bit.
like if you want to change the value of ACC to say 08h then it is sufficient to write
SETB ACC.3
instead of
MOV ACC,#08H
Hope this helps...If you have any further queries please let me know..