MC Module1
MC Module1
fetched from the external ROM in the address range of 1000H to FFFFH .
• There is another way to fetch the instructions: ignore the Internal ROM
and fetch all the instructions only from the External Program Memory
(External ROM). For this scenario, the EA Pin must be connected to GND.
In this case, the memory addresses of the external ROM will be from
0000H to FFFFH.
Bytes Hex Address range
16 10 0-F
256 100 0 - FF
1K 400 0 - 3FF
4K 1000 0 - FFF
1M 100000 0 - FFFFF
07FH
00H
• Register banks will select based on the register select bits on the
PSW
• To store a single bit of data we can utilize the bit addressable state.
Here each bit is addressable.
• General purpose RAM is used for general access for storing small
data for fast retrieval
• 8051 Also provide stack memory with SP address Starts from 07H
• By default all the general purpose register function we will use bank
0 only because always the status of RS0 and RS1 is 0.
8051 port architecture:
• 8051 has 32 I/O pins configured as four 8 bit parallel ports. All 4 ports are bidirectional
• Each port has a special function register of 8 bit size which is used to configure the port as
input or output port.
• The registers are designed as P0,P1,P2 and P3.Each register consist of 8 D latches
• To make a port as input port, write 1’s to all bits of corresponding register. To make a port as
output port, write 0’s to all bits of corresponding register
• Port 2 may be used as input port ,output port or to supply higher order address byte (with
the presence of external memory)
Port 3 Architecture:
• It behaves as a dedicated I/O ports
• This can be done using an extra buffer and a NAND gate circuit