Beruflich Dokumente
Kultur Dokumente
PRESENTATION ON
MICROPROCESSOR 8085
AND
MICROCONTROLLER
8051
MICROPROCESSOR
8085
and
assembly language programming
8085 INTRODUCTION
The features of INTEL 8085 are :
• It is an 8 bit processor.
• It is a single chip N-MOS device with 40 pins.
• It has multiplexed address and data bus.(AD0-AD7).
• It works on 5 Volt dc power supply.
• The maximum clock frequency is 3 MHz.
• It provides 74 instructions with 4 different addressing
modes.
8085 INTRODUCTION
It provides 16 address lines so it can access 2^16
=64K bytes of memory.
It generates 8 bit I/O address so it can access
2^8=256 input ports.
It provides 5 hardware interrupts:TRAP, RST 5.5, RST
6.5, RST 7.5,INTR.
It provides Acc ,one flag register ,6 general purpose
registers and two special purpose registers(SP,PC).
It provides serial lines SID ,SOD.So serial peripherals
can be interfaced with 8085 directly.
8085 PIN DIAGRAM
8085 PIN DESCRIPTION
Some important pins are :
AD0-AD7: Multiplexed Address and data lines.
Classification of Interrupts
Interrupts can be classified into two types:
Maskable Interrupts (Can be delayed or Rejected)
Non-Maskable Interrupts (Can not be delayed or Rejected)
INTERRUPTS IN 8085
The 8085 has 5 interrupt inputs.
The INTR input.
The INTR input is the only non-vectored interrupt.
INTR is mask-able using the EI/DI instruction pair.
M5.5
M7.5
M6.5
MSE
SOD
R7.5
SDE
XXX
}
RST5.5 Mask
Serial Out Data 0 - Available
RST6.5 Mask
1 - Masked
RST7.5 Mask
M5.5
M6.5
M7.5
P6.5
P7.5
P5.5
SDI
IE
}
RST5.5 Mask
Serial Data In 0 - Available
RST6.5 Mask
1 - Masked
RST7.5 Mask
RST5.5 Interrupt Pending
RST6.5 Interrupt Pending
RST7.5 Interrupt Pending Interrupt Enable
Value of the Interrupt Enable
Flip Flop
8051
MICROPROCESSOR Vs
MICRO CONTROLLER
General-purpose Microcontroller
microprocessors The fixed amount of on-chip
Must add RAM, ROM, I/O ports, ROM, RAM, and number of I/O
and timers externally to make ports makes them ideal for
them functional applications in which cost and
Make the system bulkier and space are critical.
much more expensive In many applications, the space
CPU
OSC Bus
4 I/O Ports Serial
Control
P0 P2 P1 P3 TXD RXD
Addr/Data
8051 – 40 PIN IC
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
P
P1.4 5 36 ) 0.3(AD3)
P1.5 6 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 P
) 2.3(A11
XTAL2 18 23 P
) 2.2(A10)
XTAL1 19 22 P2.1(A9)
GND 20 21 P2.0(A8)
PORT PORT3 MULTIPLE
FUNCTIONS
IMPORTANT PINS
Bank 2
10
0F
Bank 1
08
07 R7
06 R6
05 R5
04 R4 Bank 0
03 R3
02 R2
01 R1
00 R0
PROGRAM STATUS WORD
A PIN OF PORT
Read latch Vcc
TB2
Load(L1)
TB1
Read pin
8051 IC
TIMERS/COUNTERS
The 8051 has 2 timers/counters:
Timer/Counter 0
Timer/Counter 1
They can be used as
1. The Timer :Used as a time delay generator.
The clock source is the internal crystal frequency of
the 8051.
1. An event counter.
External clock pulse from input pin to count the
number of events on registers.
TMOD
REGISTER
(MSB) (LSB)
GATE C/T M1 M0 GATE C/T M1 M0
Timer 1 Timer 0
EA : Global enable/disable.
--- : Undefined.
ET2 :Enable Timer 2 interrupt.
ES :Enable Serial port interrupt.
ET1 :Enable Timer 1 interrupt.
EX1 :Enable External 1 interrupt.
ET0 : Enable Timer 0 interrupt.
EX0 : Enable External 0 interrupt.