Microcontroller 8051 Uni1 1
Microcontroller 8051 Uni1 1
025
Contents:
Introduction
8051
Architecture
CPU
OSC Bus
4 I/O Ports Serial
Control
P0 P2 P1 P3 TXD RXD
Tuesday, January 28, 2 Addr/Data
025
• Internal ROM and RAM
• I/O Ports with programmable Pins
• ALU
• Working Registers
• Clock Circuits
• Timers and Counters
• Serial Data Communication.
CY AC F0 RS1 RS0 OV - P
7FH
Scratch pad RAM
30H
2FH
Bit-Addressable RAM
20H
1FH Register Bank 3
18H
17H Register Bank 2
10H
0FH Register Bank 1 )Stack(
08H
07H Register Bank 0
00H
Tuesday, January 28, 2
025
Stack in the 8051
• The register used to access
7FH
the stack is called SP (stack
pointer) register. Scratch pad RAM
30H
P0.0
DS5000 P0.1
Port 0
8751 P0.2
8951 P0.3
P0.4
P0.5
P0.6
P0.7
TB1
Read pin data
Read pin
Read pin
P3.0 RxD 10
P3.1 TxD 11
P3.2 INT0 12
P3.3 INT1 13
P3.4 T0 14
P3.5 T1 15
P3.6 WR 16
P3.7 RD 17
R0
DPTR DPH DPL
R1
R2 PC PC
R3
R5
R6
R7