MPMC Unit-5 Cse Arun
MPMC Unit-5 Cse Arun
8051
Microcontroller
M.M.Arun Prasath., AP/ECE April 2, 2024 2
PIN DIAGRAM
8051
P1.0 1 40 Vcc
P1.1 2 39 P0.0(AD0)
P1.2 3 38 P0.1(AD1)
P1.3 4 8051 37 P0.2(AD2)
P1.4 5 36 P0.3(AD3)
P1.5 6 (8031) 35 P0.4(AD4)
P1.6 7 34 P0.5(AD5)
P1.7 8 33 P0.6(AD6)
RST 9 32 P0.7(AD7)
(RXD)P3.0 10 31 EA/VPP
(TXD)P3.1 11 30 ALE/PROG
(INT0)P3.2 12 29 PSEN
(INT1)P3.3 13 28 P2.7(A15)
(T0)P3.4 14 27 P2.6(A14)
(T1)P3.5 15 26 P2.5(A13)
(WR)P3.6 16 25 P2.4(A12)
(RD)P3.7 17 24 P2.3(A11)
XTAL2 18 23 P2.2(A10)
XTAL1 19 22 P2.1(A9)
GND 20 21 P2.0(A8)
Program Status Word: Set of flags contains the status information. It is one of the SFR.
Data Pointer: 16-bit register contains a high byte (DPH) and low byte (DPL). It has been
allotted two addresses in the SFR bank for its two bytes DPH and DPL.
Port 0 to 3 Latches and Drivers: These 4 latches and driver pairs are allotted to each of the 4
on-chip I/O ports. These latches have been allotted addresses in the SFR bank. Using the
allotted address the user can communicate with these ports (P 0,P1,P2,P3)
Serial Data Buffer: It contains 2 independent register one of them is transmit buffer, which is a
Timer Registers: Two 16-bit registers. TL0, TH0 represent the lower and higher byte of timer
register 0, similarly TL1, TH1 represent the lower and higher byte of timer register 1.
M.M.Arun Prasath., AP/ECE April 2, 2024 10
Control Registers: It contains control and status information for interrupts
Timing and Control Unit: It derives all the necessary timing at control signals register for
Oscillator: It generates the basic timing clock signal for the operation of the circuit using crystal
oscillator.
Instruction Register: This register decodes the opcode of an instruction to be executed and
gives information to the timing and control unit to generate necessary signals on the execution
of instruction.
EPROM and Program Address Register: It provides an on chip EPROM and a mechanism to
RAM and RAM Address Register: It provide internal 128 bytes of RAM and a mechanism to
address it internally.
ALU: It performs 8-bit arithmetic, logical operations over the operands held by temporary
register TMP1 and TMP2. users can’t access these temp. register.
SMOD: Serial baud rate modify bit. Set to double baud rate
using timer 1 for modes 1,2 & 3.
6-4: Not implemented.
GF1: General purpose user flag bit 1.
GF0: General purpose user flag bit 0.
PD: By setting this bit the microcontroller enters the Power
Down mode
IDL: By setting this bit the microcontroller enters
the Idle mode.