EE365 - Microprocessors period 26 10/23/00 D. R. Schertz #25 8051 Parallel Ports.

Slides:



Advertisements
Similar presentations
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Advertisements

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
The Intel 8255 Programmable Peripheral Interface chip is used to give the microprocessor (8088) access to programmable input/ output devices. It has three.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
8255 – PROGRAMMABLE PARALLEL
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Lecture 07: 8255 PPI Chip. The 80x86 IBM PC and Compatible Computers Chapter PPI Chip PPI: Programmable Parallel Interface (so it is an I/O.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
CHAPTER 4 I/O PORT PROGRAMMING. I/O Port Pins The four 8-bit I/O ports P0, P1, P2 and P3 each uses 8 pins All the ports upon RESET are configured as input,
The 8085 Microprocessor Architecture
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
kashanu.ac.ir Microprocessors 10-1 IO Devices Stepper Motors DAC, ADC, PPI Lec note 10.
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
Chapter 10 Input/Output Interface Circuits and LSI Peripheral Devices
Microcomputer & Interfacing Lecture 2
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Embedded Systems Design 1 Lecture Set 6 I/O Ports.
CPU Interfacing Memory.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
CprE 211 Break-out Board Layout
The 8253 Programmable Interval Timer
Basic I/O Interface A Course in Microprocessor
By, Prof. Tambe S. S. S.N.D. College of Engineering and Research Center Department of Electrical Engineering.
I NTRODUCTION P IN CONFIGARATION O PERATING MODE.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Applications of PPI A/D - Temperature Sensor. Analog to Digital.
8279 KEYBOARD AND DISPLAY INTERFACING
Applications of PPI Stepper Motors- D/A - A/D - Temperature Sensor.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
Programmable Peripheral Interface Parallel port Interface 8255
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
Microcontroller Intel 8051 [I/O Ports]. Pin out of the 8051 –40 pin package –32 pins are used for the 4 ports. –V CC / V SS –ALE Address Latch Enable.
PPI-8255.
EE3721 Computer System Principles
8279 KEYBOARD AND DISPLAY INTERFACING
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Basic LED Interface.
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.
8255:Programmable Peripheral Interface
KEYBOARD/DISPLAY CONTROLLER - INTEL Features of 8279 The important features of 8279 are, Simultaneous keyboard and display operations. Scanned keyboard.
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
8255 Programmable Peripheral Interface
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255: Programmable Peripheral Interface (PPI)
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
Input/Output Ports and Interfacing
Diagram of microprocessor interface with IO devices
The 8255 Programmable Peripheral Interface
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255.
Parallel communication interface 8255
Programmable Interval timer 8253 / 8254
Programmable Peripheral Interface
8085 Microprocessor Architecture
82C55 Programmable Peripheral Interface
Programmable Interval timer 8253 / 8254
Programmable Peripheral Interface
8085 Microprocessor Architecture
CHAPTER 4 I/O PORT PROGRAMMING.
The Programmable Peripheral Interface (8255A)
Presentation transcript:

EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports

u Check the Microphone You Dummy!!

EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports

8051 Ports u All four ports on an 8051 contain a latch, an input buffer, and an output buffer. u Reading from the port reads the value of the port pin through the input buffer. u Instructions that read-modify-write read from the latch so that the rewrite will reflect actual latch data.

Ports 1 and 3 u Ports 1 and 3 are used as general purpose ports. u The port 3 pins also have alternate functions used by some of the other peripherals. u In both cases, the ports are quasi-bidirectional, that is, they are output ports with a pulldown transistor and a weak pullup and can be pulled down by an external gate. u This means that a 1 must be written to a bit for that bit to be used as an input.

Ports 0 and 2 u Ports 0 and 2 are used as the external bus when external memory or I/O devices are used. u In this case, port 0 is used for the multiplexed data and low order address. u Port 2 is used for the high order address bits.

Port 2 u Port 2 is the same as ports 1 and 3 when used as a general purpose I/O port. u When it is used as the high order part of the address, it uses a strong pullup when the address bit is a 1. u This gives better rise time response than the weak internal pullup would.

Port 0 u Port 0 is an open collector output when used as a general purpose port. u This means that it can be used as a high impedance input port. u When it is used as the address/data bus, it has a stronger pullup transistor used. u Port 0 has twice the drive in the low state and significantly higher drive in the high state than the other ports.

Input and Output Devices u There are several examples of input and output given in the chapter. –Input dip switch –Output LED indicators –Output 7 segment displays –Input keyboard –Liquid -Crystal display –Digital to Analog converter (later)

8255 Programmable Peripheral Interface u The Intel 8255 is a parallel port peripheral. u It has 3 8-bit ports A, B, and C. u Port C bits can be used to provide handshaking for ports A and B. u Port A, Port B, the upper nybble of Port C, and the lower nybble of Port C can each be independently assigned to be an input or an output port.

8255 Programmable Peripheral Interface u The chip takes standard Intel 8-bit signals as its inputs. u RD’ u WR’ u A1,A0 - select 1 of four internal registers u CS’ - overall chip select u RESET

8255 Programmable Peripheral Interface u The chip has three modes of operation: –Mode 0 - dumb I/O (all ports) –Mode 1 - handshake I/O (ports A and B) –Mode 2 - bidirectional handshake (port A) u In modes 1 and 2, some of the bits of port C are used for the control lines for ports A and B. u The remaining bits of port C are general purpose I/O.

8255 Control Word u There is a control word to program the actions of the chip. u The chip mode is set when bit 7 of the control word has the value 1

8255 Control Word u Data direction is controlled by several bits where 1 indicates input and 0 indicates output: –D0 - Port C lower nybble –D1 - Port B –D3 - Port C upper nybble –D4 - Port A u D2 sets the mode for port B. u D6,D5 set the mode for port A.

8255 Control Word u A second use of the control word is accessed by writing a 0 in bit 7. u In this case, any one bit of port C can be set or reset individually. u Bit 0 of the control word contains the value to be written. u Bits 3,2,1 select the bit position to be written.

8255 Strobed I/O u The examples following are shown for port A. u Those for port B (mode 1 only) are similar.

8255 Strobed Input u The configuration of port C pins for Port A strobed input is: 4 STB’ 5 IBF’ 3 INTR

8255 Strobed Input u The waveforms for the handshake for mode 1 input are:

8255 Strobed Output u The configuration of port C pins for Port A strobed output is: 7 OBF’ 8 ACK’ 3 INTR

8255 Strobed Output u The waveforms for the handshake for mode 1 output are:

8255 Bidirectional Strobed I/O u The operation of mode two for port A basically combines the input and output signals from the two previous slides into one.