Mpi Bece1 517
Mpi Bece1 517
Mpi Bece1 517
• 1965:
Gordon Moore at Fairchild Semiconductor observes in an article for Electronics
magazine that the number of transistors on a semiconductor chip doubles every year
(download PDF). For microprocessors, it will double about every two years for more
than three decades.
• 1968:
Moore, Robert Noyce and Andy Grove found Intel Corp. to pursue the business of
"INTegrated ELectronics."
• 1969:
Intel announces its first product, the world's first metal oxide semiconductor (MOS)
static RAM, the 1101. It signals the end of magnetic core memory.
• 1971:
Intel launches the world's first microprocessor, the 4-bit 4004, designed by Federico
Faggin. The 2,000-transistor chip is made for a Japanese calculator, but a farsighted Intel
ad calls it "a micro programmable computer on a chip.“It has 4 KB memory, 45
instructions and based on PMOS technology.
• 1972:
Intel announces the 8-bit 8008 processor. Teenagers Bill Gates and Paul Allen try to
develop a programming language for the chip, but it is not powerful enough.
• 1974:
Intel introduces the 8-bit 8080 processor, with 4,500 transistors and 10 times the
performance of its predecessor.
• 1975: The 8080 chip finds its first PC application in the Altair 8800, launching the
PC revolution. Gates and Allen succeed in developing the Altair Basic language,
which will later become Microsoft Basic, for the 8080.
• 1976:
The x86 architecture suffers a setback when Steve Jobs and Steve Wozniak
introduce the Apple II computer using the 8-bit 6502 processor from MOS
Technology. PC maker Commodore also uses the Intel competitor's chip.
• 1978:
Intel introduces the 16-bit 8086 microprocessor. It will become an industry
standard.
• 1979:
Intel introduces a lower-cost version of the 8086, the 8088, with an 8-bit bus.
• 1980:
Intel introduces the 8087 math co-processor.
• 1981:
IBM picks the Intel 8088 to power its PC. An Intel executive would later call it "the
biggest win ever for Intel."
• 1982:
IBM signs Advanced Micro Devices as second source to Intel for 8086 and 8088
microprocessors. Intel introduces the 16-bit 80286 processor with 134,000
transistors.
• 1984:
IBM develops its second-generation PC, the 80286-based PC-AT. The PC-AT
running MS-DOS will become the de facto PC standard for almost 10 years.
• 1985:
Intel exits the dynamic RAM business to focus on microprocessors, and it brings
out the 80386 processor, a 32-bit chip with 275,000 transistors and the ability to run
multiple programs at once.
• 1986:
Compaq Computer leapfrogs IBM with the introduction of an 80386-based PC.
• 1987: VIA Technologies is founded in Fremont, Calif., to sell x86 core logic chip sets.
• 1989:
The 80486 is launched, with 1.2 million transistors and a built-in math co-processor.
Intel predicts the development of multicore processor chips some time after 2000.
• Late 1980s: The complex instruction set computing (CISC) architecture of the x86
comes under fire from the rival reduced instruction set computing (RISC) architectures
of the Sun Sparc, the IBM/Apple/Motorola PowerPC and the MIPS processors. Intel
responds with its own RISC processor, the i860.
• 1990:
Compaq introduces the industry's first PC servers, running the 80486.
• 1993:
The 3.1 million transistor, 66-MHz Pentium processor with superscalar technology is
introduced.
• 1994:
AMD and Compaq form an alliance to power Compaq computers with Am486
microprocessors.
• 1995
The Pentium Pro, a RISC slayer, debuts with radical new features that allow
instructions to be anticipated and executed out of order. That, plus an extremely fast
on-chip cache and dual independent buses, enable big performance gains in some
applications.
• 1997:
Intel launches its 64-bit Epic processor technology. It also introduces the MMX
Pentium for digital signal processor applications, including graphics, audio and
voice processing.
• 1998:
Intel introduces the low-end Celeron processor.
• 1999:
VIA acquires Cyrix Corp. and Centaur Technology, makers of x86 processors and
x87 co-processors.
• 2000: The Pentium 4 debuts with 42 million transistors.
• 2003: AMD introduces the x86-64, a 64-bit superset of the x86 instruction set.
• 2004: AMD demonstrates an x86 dual-core processor chip.
• 2005: Intel ships its first dual-core processor chip. Apple announces it will
transition its Macintosh computers from PowerPCs made by Free scale
(formerly Motorola) and IBM to Intel's x86 family of processors. AMD
files antitrust litigation charging that Intel abuses "monopoly" to exclude
and limit competition. (The case is still pending in 2008.)
• http://www.newagepublishers.com/samplechapter/000030.pdf
• Text book: Microprocessors and its architecture by Ramesh Gaonkar
• http://www.quepublishing.com/articles/article.aspx?p=482324&seqNum=2
Architecture of 8085
Microprocessor
8085 ARCHITECTURE
Arithmetic and Logical group
S Z X AC X P X CY
S:Sign flag is set when result of an operation is negative.
Z:Zero flag is set when result of an operation is 0.
Ac:Auxiliary carry flag is set when there is a carry out of lower
nibble or lower four bits of the operation.
CY:Carry flag is set when there is carry generated by an
operation.
P:Parity flag is set when result contains even number of 1’s.
Rest are don’t care flip flops.
Register Group
• Temporary registers (W,Z):These are not available for user.
These are loaded only when there is an operation being
performed.
• General purpose:There are six general purpose registers in
8085 namely B,C,D,E,H,L.These are used for various data
manipulations.
• Special purpose :There are two special purpose registers in
8085:
1. SP :Stack Pointer.
2. PC:Program Counter.
Register Group
SERIAL IO CONTROL
GROUP
• It is used to accept the serial 1 bit data by
using SID and SOD signals and it can be
performed by using SIM & RIM
instructions.
Addressing Mode of
Microprocessor 8085
ADDRESSING MODES OF 8085
Immediate addressing:
Immediate data is transferred to address or register.
Example:
MVI A,20H. Transfer immediate data 20H to accumulator.
Number of bytes:
Either 2 or 3 bytes long.
1st byte is opcode.
2nd byte 8 bit data .
3rd byte higher byte data of 16 bytes.
ADDRESSING MODES OF 8085
Register addressing:
Data is transferred from one register to other.
Example:
MOV A, C :Transfer data from C register to accumulator.
Number of bytes:
Only 1 byte long.
One byte is opcode.
ADDRESSING MODES OF 8085
Direct addressing:
• Data is transferred from direct address to other register or
vice-versa.
Example:
LDA C200H .Transfer contents from C200H to Acc.
Number of bytes:
These are 3 bytes long.
1st byte is opcode.
2nd byte lower address.
3rd byte higher address.
ADDRESSING MODES OF 8085
Indirect addressing:
Data is transferred from address pointed by the data in a
register to other register or vice-versa.
Example:
MOV A, M: Move contents from address pointed by M to Acc.
Number of bytes:
These are 3 bytes long.
1st byte is opcode.
2nd byte lower address.
3rd byte higher address.
ADDRESSING MODES OF 8085
Implied addressing:
• These doesn’t require any operand. The data is specified in
Opcode itself.
Example: RAL: Rotate left with carry.
No.of Bytes:
These are single byte instruction or Opcode only.
Interrupts of Microprocessor 8085
INTERRUPTS IN 8085
• Interrupt is a process where an external device can get the
attention of the microprocessor.
The process starts from the I/O device
The process is asynchronous.
• 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
Interrupts can also be classified into:
• Vectored (the address of the service routine is hard-
wired)
• Non-vectored (the address of the service routine needs
to be supplied externally by the device)
• An interrupt is considered to be an emergency signal that may
be serviced.
– The Microprocessor may respond to it as soon as
possible.
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
SOD
MSE
R7.5
SDE
XXX
RST5.5 Mask
Serial Out Data RST6.5 Mask
RST7.5 Mask
} 0 - Available
1 - Masked
M7.5
M6.5
M5.5
SDO
MSE
R7.5
SDE
XXX
- Disable 6.5 bit 1 = 1
- Enable 7.5 bit 2 = 0
- Allow setting the masks bit 3 = 1 0 0 0 0 1 0 1 0
- Don’t reset the flip flop bit 4 = 0
- Bit 5 is not used bit 5 = 0
- Don’t use serial data bit 6 = 0
- Serial data is ignored bit 7 = 0
7 6 5 4 3 2 1 0
M5.5
M7.5
M6.5
P6.5
P7.5
P5.5
SDI
IE
RST5.5 Mask
Serial Data In RST6.5 Mask
RST7.5 Mask
} 0 - Available
1 - Masked
•Since the 8085 has five interrupt lines, interrupts may occur during an
ISR and remain pending.
•Using the RIM instruction, it is possible to can read the status of the
interrupt lines and find if there are any pending interrupts.
Memory Interfacing of
Microprocessor 8085
8085 Memory Interfacing
• Generally µP 8085 can address 64 kB of memory .
• Generally EPROMS are used as program memory and RAM as
data memory.
• We can interface Multiple RAMs and EPROMS to single µP .
• Memory interfacing includes 3 steps :
1. Select the chip.
2. Identify register.
3. Enable appropriate buffer.
8085 Memory Interfacing
• Example: Interface 2Kbytes of Memory to 8085 with starting
address 8000H.
Initially we realize that 2K memory requires 11 address lines
(2^11=2048). So we use A0-A10 .
• Write down A15 –A0
14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 ADD
A15
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8000H
1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 87FFH
8085 Memory Interfacing
• Address lines A0-A10 are used to interface memory while
A11,A12,A13,A14,A15 are given to 3:8 Decoder to provide an
output signal used to select the memory chip CS¯or Chip
select input.
• MEMR¯ and MEMW¯are given to RD¯and WR¯pins of Memory
chip.
• Data lines D0-D7 are given to D0-D7 pins of the memory chip.
• In this way memory interfacing can be achieved.
8085 Memory Interfacing
• The diagram of 2k interfacing is shown below:
3:8DECODER
A15- A11
8085
CS
A15-A8
ALE
A10- A0 2K Byte
Latch Memory
AD7-AD0 A7- A0 Chip
WR RD IO/M D7- D0
RD WR
8085 Memory Interfacing
•In this example we saw that some address lines are used for
interfacing while others are for decoding.
•It is called absolute decoding.
•We sometimes don’t requires that many address lines.So
we ignore them.But this may lead to shadowing or multiple
address.
•This type of decoding is called linear decoding or partial
decoding.
•In partial decoding wastage of address takes place but it
requires less hardware and cost is also less as compared with
absolute one.
Programming of Microprocessor
8085
PROGRAM