Professional Documents
Culture Documents
89S52Basics3 BIT ADRESSABLE AREA
89S52Basics3 BIT ADRESSABLE AREA
By DeccanRobots
What is Bit Addressable Area?
FFh
General purpose
Memory Area
2Fh
Bit Addressable
Memory
20h Memory Area
from 20H to
Registers
2FH is Bit
00h addressable
Data Memory Area.
For Microcontroller Development Boards --- www.EmbeddedMarket.com -- India
What is Bit Addressable Area?
FFh This memory area can be accessed
as a byte as well as a bit.
Remember:
CLR Command is always used for a BIT.
0 0 0 0 0 0 0 0 02h
0 0 0 0 0 0 0 0 01h
0 0 0 0 0 0 0 0 00h
For Microcontroller Development Boards --- www.EmbeddedMarket.com -- India
What is Bit Addressable Area?
Complement P2.0
Label
CPL is complement, which will change
state of P2.0 to 0 if it is 1 OR will make
it 1 if it is 0
For Microcontroller Development Boards --- www.EmbeddedMarket.com -- India
Toggle LED using Micro Switch
PSW Register
D0
7th 0th
bit bit
It is used to store result
CARRY FLAG of most of the Boolean
Known as “C” Operations
ANL C,bit-address
ANL C,03h
This command will AND value of C with
value of address 03h.
Similarly: E.g.
Similarly:
ORL C,/bit-address