Documente Academic
Documente Profesional
Documente Cultură
8085 MPU
MPU is device or group of device(as a unit) that communicate with peripherals provide timing signals, direct data flow, and perform computing task as specified by the instructions in memory. 8085 is MPU but with 2 limitations: Low order address bus is multiplexed (time-shared) with data bus. The buses need to be demultiplexed. Appropriate control signals need to be generated to interface memory and I/O with the 8085.
Tri-State Devices
Interfacing Device necessary to interconnect the components of bus-oriented system. Devices essential for proper functioning of bus-oriented system. have 3 states : logic 1, logic 0, and high impedance. Trademark of National Semiconductor.
It is a useful device that allows us to control when current passes through the device, and when it doesn't.
Third line is called Enable is activated, tri-state device function same as ordinary logic device.
Tri-State Devices
When enable E is high the gate is enabled and the output Q can be 1 or 0 (if A is 0, Q is 1, otherwise Q is 0). However, when E is low the gate is disabled and the output Q enters into a high impedance state.
8085 MPU
8085 is 8-bit general purpose microprocessor. Capable of addressing 64K (216 = 65,536 registers ) of memory. 40 pin DIP(Dual in line package). +5V 3 - 5MHz
ADDRESS BUS DATA BUS CONTROL STATUS POWER SUPPLY AND FREQUENCY EXTERNALLY INITIATED SIGNALS SERIAL I/O PORTS
330_01
10
When both inputs are low output are low generate MEMR and MEMW control signal.
IO/M goes high, indicates peripheral I/O operation.
Fig shows signal is complemented with hex inverter 74LS04 and ADDed with RD and WR signals to generate IOR and IOW control signals.
11
X1, X2: A crystal (or RC, LC network) is connected at these two pins. The frequency is internally divided by two; therefore, to operate a system at 3 MHz, the crystal should have a frequency of 6 MHz. CLK (OUT) Clock Output: This signal can be used as the system clock for other devices.
12
In addition to the interrupts, three pinsRESET, HOLD and READY accept the externally initiated signals as inputs. To respond to the HOLD request, it has one signal called HLDA (Hold Acknowledge).
RESET IN: When the signal on this pin goes low, the program counter is set to zero, the buses are tri-stated, and the MPU is reset. RESET OUT: This signal indicates that the MPU is being reset. This signal can be used to reset other devices
13
14
15
TIMING DIAGRAM
Timing Diagram is a graphical representation. It represents the execution time taken by each instruction in a graphical format. The execution time is represented in Tstates. Instruction Cycle: The time required to execute an instruction is called instruction cycle. 8085 instruction cycle consist of 1 to 6 machine cycle ( or operations). Machine Cycle: The time required to complete one operation of accessing memory, input/output devices or acknowledging an external request is called machine cycle. It consist of 3 to 6 T-states. T-State ( or Clock Period): The machine cycle and instruction cycle takes multiple clock periods. A portion of an operation carried out in one system clock period is called as Tstate. These subdivision are internal states synchronized by system clock.
16
Opcode fetch cycle (4T) Memory read cycle (3 T) Memory write cycle (3 T) I/O read cycle (3 T) I/O write cycle (3 T)
17
18
21
22
Low order address 05H is lost after the first clock period.
Address need to be latched and used for identifying memory location (2005H), the address will change to 204FH after first clock periods. when ALE goes high (during T1), the latch is transparent (output changes according to input). During T1 output of latch is 05H. When ALE goes Low, the data byte 05H is latched until next ALE, and output of latch represents the low-order address bus AD7-AD0 after latching operation.
23
Memory Read Machine Cycle of 8085: The memory read machine cycle is executed by the processor to read a data byte from memory. The processor takes 3T states to execute this cycle. The instructions which have more than one byte word size (like MVI A,32H that is load byte 32H in the accumulator) will use the machine cycle after the opcode fetch machine cycle.
24
25
The 8085 needs to read these two bytes from memory before it can execute the instruction. Therefore, it will need at least two machine cycles.
-The first machine cycle is the opcode fetch discussed earlier. -The second machine cycle is the Memory Read Cycle.
26
27
The I/O write machine cycle is executed by the processor to write a data byte in the I/O port or to a peripheral, which is I/O, mapped in the system. The processor takes, 3T states to execute this machine cycle. The 8085 instructions consist of one to five machine cycles. Actually the execution of an instruction is the execution of the machine cycles of that instruction in the predefined order. The timing diagram of an instruction ate obtained by drawing the timing diagrams of the machine cycles of that instruction, one by one in the order of execution.
28
29