Unit 1
Unit 1
UNIT 1
INTRODUCTION TO INTEL 8085
By:
ATIFA AQUEEL
Electronics Engg. Section
University Women’s Polytechnic, AMU
I/O DEVICES
Compiler: HLL to ML
Assembler: ALL to ML
00
2 to 4 Decoder
00
00
+ - X /
11
OP (ML) – INS(AL)
Consider very simplest µp that has only 00 – ADD
4 instructions: ADD, SUB, MULT, DIV, 01 – SUB
so there will be only 4 opcodes. 10 – MULT
20-09-2022 By: Atifa Aqueel 11 – DIV 6
baSICS Of bINaRy aND HExaDECImaL
Everything stored inside a computer is in binary form i.e 0s and 1s.
6 4 0 1 0 0 D 1 1 0 1
combina 5 0 1 0 1 E 1 1 1 0
tion are
forbidde 6 0 1 1 0 F 1 1 1 1
n in
decimal 7 0 1 1 1
represen
tation 8 1 0 0 0
9 1 0 0 1
20-09-2022 By: Atifa Aqueel 7
baSICS Of bINaRy aND
HExaDECImaL
• ADD 0001+1001 =1010 (No such no. is present in decimal system)
• Using 4 bits always need 16 combinations (we need to name each of those
combinations)
• There came the need for creating a new system which has 16
representations. i.e. Hexadecimal numbers
• In decimal system maximum 4 digit no. is 9999 while in hexadecimal it is
FFFF (65536). Both are using the same space.
• Therefore in computers we do not use decimal numbers.
Hexadecimal Binary 8 BIT NO.
00H (8 ZEROES)
00 H …….
35H FFH (8 ONES)
74H 16 BIT NO.
0000H (16 ZEROES)
93H
…….
20-09-2022 FFH By: Atifa Aqueel FFFFH (16 ONES) 8
1 byte = 8 bits
1 nibble = 4 bits
1 word = 16 bits POwERS Of 2
• In this subject everything is in binary so every number is in some power of
2.
20 1 211 21 x 210 = 2K
21 2 212
22 4 213
23 8 216
24 16 220 210 x210= 1K x 1K =1M
25 32 224 16M
26 64 230 210 X210 X210 =1K X1KX1K=1G
27 128 240 1T
28 256 243
29 512 236
210 1024 or 1K 239
Or 1Kilo
1GB = 1 gigabytes, whereas 1Gb = 1 gigabits
20-09-2022 By: Atifa Aqueel 9
4GB RAM means 232bytes
DEfINITION
• A microprocessor is a controlling unit of a micro-computer wrapped inside
a small chip. It performs Arithmetic Logical Unit (ALU) operations and
communicates with the other devices connected with it. It is a single
Integrated Circuit in which several functions are combined. It is
abbreviated as µP.
• Microprocessors are used almost everywhere. Some common household
items where you are likely to find a microprocessor are washing machines,
microwave ovens, laptops, digital clocks and smartphones.
Microprocessor
Microprocessor Vs Microcomputer
The microprocessor is one component of the microcomputer. On the other
hand, the microcomputer is a complete computer similar to any other computer,
except that the CPU functions of the microcomputer are performed by the
microprocessor.
• The input devices such as keyboard, mouse, switches and A/D converters
are used to transfer binary information from outside world to the
microprocessor.
• The output devices such as LEDs, Cathode Ray Tubes (CRTs), printers, X-
Y plotters, D/A converters transfer data from the microprocessor to the
outside world.
D-Bus
1000H 45H
PROCESSOR
C-Bus
4000H
Mem. Write4001H
I/O DEVICES
Memory Read 0 0 1
Memory Write 0 1 0
I/O Read 1 0 1
I/O Write 1 1 0
1 byte = 8 bits
1 nibble = 4 bits
1 word = 16 bits
20-09-2022 By: Atifa Aqueel 31
8085 µP aRCHITECTURE
The 8085 is based on Von-Neumann architecture, where the data and instructions
are in the same memory space without any distinction between them.
INSTRUCTION DECODER:
• The fetched instruction from the Instruction register enters the Instruction
Decoder.
• Here the instruction is decoded and the decode information is given to the
Timing and Control Circuit to issue the necessary timing and control
signals for the execution of the particular instruction.
WZ
• The programmer has no access to this register pair.
• It is used for swapping the content of two register pair.
20-09-2022 By: Atifa Aqueel 44
Status Flags (Flag Registers)
• Flag register contents. D1, D3 and D5 slots are empty. A lot of processors have
these ’empty’ register slots in their designs to accommodate future design updates.
• The 8 bit data bus (D0 – D7) is multiplexed with the lower half
(A0 – A7) of the 16 bit address bus.
• These are time multiplexed Address/Data bus i.e. they serve
dual purpose.
• During first part of the machine cycle (T1), lower 8 bits of
memory address or I/O address appear on the bus.
• During remaining part of the machine cycle (T2 and T3) these
lines are used as a bi-directional data bus.
• However lower order address can be separated from the data
bus by using external latch.
• SOD (Serial Output Data) – It is a data line for serial output transmission.
• This pin outputs serial data onto the 7th bit of the accumulator when a SIM
instruction is executed.
• The microprocessor sends out data bit by bit through this pin.
• RIM and SIM are two instructions used for serial transmission.
vectored