Dr. Rabie A. Ramadan Al-Azhar University Lecture 6

Slides:



Advertisements
Similar presentations
MICROPROCESSOR BASED SYSTEM DESIGN
Advertisements

IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
The CPU The Central Presentation Unit What is the CPU?
Computer Architecture
Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 4.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
The 8085 Microprocessor Architecture
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Room: Timbalan Pengarah Pusat Komputer Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 4: Introduction.
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
TK 2633 Microprocessor & Interfacing
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Microcontroller Architecture PIC18F Family
Fig 8-4 p-341. S 5 =IF flag (interrupt Enable). S 6 =0 always.
Port Mapped I/O.
Computer Architecture Lecture 8 by Engineer A. Lecturer Aymen Hasan AlAwady 30/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Basic I/O Interface A Course in Microprocessor
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 7.
General Concepts of Computer Organization Overview of Microcomputer.
Input-Output Organization
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Basic I/O Interface Fixed Address Variable Address
Basic LED Interface.
Computer Architecture Lecture 5 by Engineer A. Lecturer Aymen Hasan AlAwady 25/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
1 Microprocessors CSE – 341 Basic I/O Interfacing.
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
MACHINE CYCLE AND T-STATE
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Central Processing Unit Decode Cycle. Central Processing Unit Current Instruction Register (CIR) I1 The fetch cycle has transferred an instruction from.
8 085Microprocessor Temp Reg (8) Accumulator (A reg) Flag flip flops(8) Instruction Register (8) Arithmetic Logic Unit ALU Instruction Decoder and Machine.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
Seminar On 8085 microprocessor
TIMING DIAGRAM OF 8085 By Sadhish Prabhu.
The 8085 Microprocessor Architecture
Instruction format Instruction is a command to microprocessor to perform a given task on specified data. Each instruction has two parts: One is the task.
Interfacing I/O Devices
Diagram of microprocessor interface with IO devices
CPU Sequencing 6/30/2018.
The 8085 Microprocessor Architecture
Dr. Rabie A. Ramadan Al-Azhar University Lecture 5
Dr. Michael Nasief Lecture 2
8085 microprocessor.
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Kanwaljeet Singh, Lovely Professional University.
Interfacing Memory Interfacing.
Number Representations and Basic Processor Architecture
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
8085 Microprocessor Architecture
X1 & X2 These are also called Crystal Input Pins.
Tri-state buffer A circuit which allows an input to go to output when desired Otherwise it behaves as if “nothing” is connected to the wire An equivalent.
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
CPU Sequencing 7/20/2019.
Presentation transcript:

Dr. Rabie A. Ramadan Al-Azhar University Lecture 6 Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 6

Interfacing I/O Devices

I/O modes Serial Mode Parallel Mode Data entered or exited in parallel Data entered or exited in serial Parallel Mode Data entered or exited in parallel Interfaced through: Peripheral mapped I/O Each device has a 8-bit address and enabled by I/O related control signals Memory mapped I/O Each device has a 16-bit address and enabled by memory related control signals

Interfacing I/O Devices The Z80 uses the instructions: IN to read (input) data from an input device and OUT to write (send) data to an output device.

OUT Instruction It can send data from the accumulator, internal-purpose registers, or memory registers to an output device. The OUT instructions include: 8 bit address of a device as an operand. The address range from 00H to FFH is called the I/O or peripheral map, An address can be referred to as a device address, port address, or port number.

Example When the microprocessor reads and executes the machine codes written at memory register 2050H and 2051H, it will transfer (copy) the byte from the accumulator to the LED port with address 07H and display the byte.

Execution of OUT Instruction and Timing The OUT has three machine cycles; Opcode Fetch, Memory Read and I/O Write. The Z80 reads the opcode and the port address from memory in the first two machine cycles and writes into the port in the third cycle.

Execution of OUT Instruction and Timing

Execution of OUT Instruction and Timing

Basic Concepts in Interfacing Output Devices

Basic Concepts in Interfacing Output Devices

Illustrative Example 1: Interfacing LEDs Hardware 7475 Latch 4 D-Latches 2 enable lines 47LS373 Octal Latch Latch followed by tri- state buffer Reduces using the data bus 8 latches instead of 4

Interface Circuit

Interface Circuit

Using a Seven-Segment LED as a Display Device

Using a Seven-Segment LED as a Display Device

Interfacing INPUT Devices IN instruction Read (copy) data from such input devices as switches, keyboard, and A/D data converters. Can read an input device and place the data into the accumulator, Z80 registers, or memory registers.

Example First read the machine codes stored at locations 2065H and 2066H, Read the switch positions at port 84H by enabling the interfacing device of the port. The data byte indicating switch positions from the input port will be placed in the accumulator.

Execution of IN Instruction and Its Timing The IN instruction has three machine cycles: Opcode Fetch, Memory Read  port address I/O Read.

Execution of IN Instruction and Its Timing

Illustrative Example : Interfacing Input Switches

Multiple Port Addresses the address lines A4 and A3 are not used by the decoding circuit; the logic levels on these lines can be either 0 or 1.

Some other examples from the book