Beruflich Dokumente
Kultur Dokumente
1.1 Evolution of Microprocessor and types 1.2 8085 Microprocessor, Salient features Pin description, Architecture of 8085 - Functional Block diagram, Register organization
What is Microprocessor?
1,2
X1 - X2
This is an active high output signal RESET OUT used to reset external devices connected to microprocessor.
Description
Serial Output Data.
This is an active high, serial output port pin, used to transfer serial 1 bit data under software control.
TRAP
Description
Restart. These are active high, maskable hardware interrupts, RST 7.5 is edge triggered interrupt. RST 6.5 and RST 5.5 are level triggered interrupts. These are vectored interrupt that transfer the program control to specific memory location.
7-9
Description
Multiplexed Address / Data Bus
These pins are multiplexed to be used as address bus as well as data bus.These are signal lines which are bidirectional & they serve dual purpose. They are used as lower order address bus as well as data bus. This is Ground Reference
12 - 19
AD0-AD7
20
GND
Pin No.
Pin Name
Description
Address Bus
21 - 28 A8-A15
These 8 bit output signal lines, they are unidirectional and used for most significant bits called higher order address bus of a 16-bit address.
30
ALE
ALE= 1 (High) indicates that contents are address. ALE=0 (Low) indicates that the contents are data.
Description
These are status signal, similar to IO/M, can identify various operations.
IO/M 0
S1 1 1 0 1 0 1
S0 1 0 1 0 1 1
Machine Cycle Opcode Fetch Memory Read Memory Write I/O Read I/O Write Interrupt Acknowledgement
29, 33
S0 and S1
0 0 1 1 1
Description
This is a Write control signal (active low). This signal indicates that the data on the data bus are to be written into selected memory or I/O location.
Read 32 RD
This is a Read control signal (active low). This signal indicates that the selected I/O or memory device is to be read.
35
READY
If READY pin is high, then the microprocessor completes the operation and proceeds for next operation. If READY pin is low, the microprocessor enters in to wait state. This signal is primarily used to synchronize slower peripherals with the microprocessor.
34
IO/M
Description
When the RESET pin is activated by an external key all the internal operations are suspended and the program counter is cleared and the program execution begins at 000H memory address.
36
RESET IN
39
HOLD
40
Vcc
Architecture of 8085
8085 is an 8 bit general purpose microprocessor. It is called 8 bit microprocessor because it has 8 bit internal bus, 8-bit ALU , 8-bit registers.
The internal architecture of 8085 consist of : 1. Register Block 2. ALU Block 3. Control Unit Block 4. Interrupt Block 5. Serial I/O Control Block
1. Register Block
It Consist of three types of the registers: 1. Temporary registers 2. General Purpose registers 3. Special Purpose registers
1. Temporary Registers:
1. The 8085 mp provides two 8-bit temporary registers W and Z and not available for the user. 2. The mp use these registers for storing the data or address temporarily whenever required.
2 . General Purpose Register: 1. The 8085 provides 6 general purpose register of 8 bit each i.e B, C, D, E, H and L. 2. These registers are available for user and can be used to store 8-bit data or can be used to form register pair such as BC, DE, HL to store 16-bit data.
as a stack.
Stack Pointer points current top of stack.
it is a 16-bit register to increment or decrement the contents of program counter and stack pointer.
2. ALU Block
Arithmetic and Logical Group : this group consist of a) ALU b) Accumulator c) Temporary register and d) flag register.
b. Accumulator (ACC)
it is 8-bit register which contains 8 flip-flops. The accumulator is also identified as register A. The importance of accumulator is that, whenever microprocessor performs any arithmetic or logical operation in ALU then first 8-bit number is always
d. Flag Register:
The flag register contains following 5 Flags:
S- Sign Flag Z- Zero Flag AC- Auxiliary Carry Flag P- Parity Flag CY- Carry Flag
MSB
LSB
When microprocessor performs subtraction of two 8-bit numbers then borrow required by 5 LSBs is directly copied into AC flag.
4. Zero Flag
If the result of arithmetic and logical operation is zero then ZF=1.
5. Sign Flag
This flag is only used for signed binary numbers. If the result obtained is negative the SF=1. but if result is positive SF=0.
IR
ID
256
1. Address Bus:
8085 has 16-bit address bus from A15- A8 and AD7- AD0 and it is unidirectional. The address bus is used to transfer 16-bit address of memory as well as 8-bit address of I/O ports.
2. Data Bus:
The 8085 has 8-bit data bus from AD7- AD0 and it is bidirectional. These lines are often known as multiplexed lines and time shared lines. The AD7- AD0. are used to transform both address as well as data. But the address and data is not transferred simultaneously so these lines are often known as time shared lines.
3. Control Bus:
Control bus has various lines which have specific functions for coordinating and controlling microprocessor operations.
74LS373
In 8085 microprocessor, the higher order address lines ie. AD8- AD15 are directly available , but the lower order address lines are multiplexed with data bus in time sharing. Hence, the demultiplexing of address / data bus is required i.e separation of address and data bus.
When ALE goes High (1) the address signals will be latched in the octal latch 74LS373 and output of the latch will be provided on AD7- AD0 .
When ALE goes Low(0) the latch will be disabled and the AD7- AD0 can be used as data bus D0-D7.