bit addressable registers in 8251 mircocontroller

elamparithi

elamparithi

@elamparithi-lu4sGn Oct 26, 2024
please tell about the bit addressable registers in 8251 mircocontroller..........i cant even understand the meaning or definition i searched the web..but i didnt get the answers😔....please tell wat is the basic thing behind the bit addressable registers...😕

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Nov 10, 2009

    Post moved to new thread.
  • Mahesh Dahale

    Mahesh Dahale

    @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

    elamparithi

    @elamparithi-lu4sGn Nov 11, 2009

    mahesh_dahale
    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
    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... ?????
  • shreya_rulz

    shreya_rulz

    @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..