Академический Документы
Профессиональный Документы
Культура Документы
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-2
Chapter 2 - 8255
Features
The 8255 is a programmable, parallel I/O device simply called PPI. It can be programmed to transfer data in various modes of I/O. It provides 24 I/O pins that can be grouped into three 8 bit parallel ports: PORT A, PORT B and PORT C. The 8 bits of port C is separated into two 4-bit ports: PORT C UPPER (PC4-PC7) and PORT C LOWER (PC0-PC3) see the fig1.0.
-The Intel 8255 (or i8255) Programmable Peripheral Interface chip is a peripheral chip originally developed for the Intel 8085 microprocessor. Intel 8255A is NMOS version. N-type metal-oxide-semiconductor logic uses n-type metal-oxide-semiconductor field effect transistors (MOSFETs) to implement logic gates and other digital circuits. - 82c55A is the high performance CMOS version of 8255 by Intersil Company. CMOS uses complementary and symmetrical pairs of ptype and n-type metal oxide semiconductor field effect transistors (MOSFETs) for logic functions. Department of Mechatronics Le Thanh Hai
2-3
Chapter 2 - 8255
In electronics, a chip carrier is one of several kinds of surface mount technology packages for integrated circuits.
Department of Mechatronics Le Thanh Hai
2-4
Chapter 2 - 8255
IC power supply pin (VCC), plus collector supply line voltage in a common NPN circuit. In electronics, decoupling refers to the preventing of undesired coupling between subsystems via the power supply connections. Noise caused by other circuit elements is shunted through the capacitor.
GND: Ground. DATA BUS (D0-D7): The Data Bus lines are bidirectional three-state pins connected to the system data bus. RESET: A high on this input clears the control register and all ports (A, B, C) are set to the input mode. CHIP SELECT: Chip select is an active low input used to enable the 82C55A. READ: This control signal enables the Read operation. When the signal is low, the microprocessor reads data from a selected I/O Port of the 8255.
Department of Mechatronics
Le Thanh Hai
2-5
Chapter 2 - 8255
PORT A (PA0-PA7): 8-bit input and output port. PORT B (PB0-PB7): 8-bit input and output port. PORT C (PC0 -PC7): 8-bit input and output port.
Le Thanh Hai
Department of Mechatronics
2-6
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-7
Chapter 2 - 8255
Functional Diagram
There are two different operating modes for the 8255. These modes must be defined by the microprocessor writing program or control words of 8255. 1) Bit Set-Reset mode (BSR) : BSR mode is used to define the handshaking signals. 2) I/O mode: It is used for I/O data transfer.
In the functional diagram two control groups, labeled group A control and group B control define how the three I/O ports operate. The upper 4 bits of PORT C along with PORT A are associated with group A control while the lower 4 bits of PORT C along with PORT B are associated with group B control.
Le Thanh Hai
Department of Mechatronics
2-8
Chapter 2 - 8255
If bit D7=1, 8255 operate in I/O mode and the bits D6-D0 determines I/O operations in various modes. Bits D2, D1, D0 determine the Group B control. Bit D2 is for I/O mode selection and bits D1 and D0 are used to initialize the ports as Input or output. Similarly the bits D6-D3 determines the Group A control. D6 and D5 bits are for mode selection and the bits D4 and D3 are used to initialize the ports as input or output.
BSR Mode
I/O Mode
If bit D7=0, 8255 operates in BSR mode and the Port C bits are used to initialize handshaking signals.
Department of Mechatronics
Le Thanh Hai
2-9
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-10
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-11
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-12
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-13
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-14
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-15
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-16
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-17
Chapter 2 - 8255
COMBINATIONS OF MODE 1
Department of Mechatronics
Le Thanh Hai
2-18
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-19
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-20
Chapter 2 - 8255
2-21
Chapter 2 - 8255
MODE 2 COMBINATIONS
Department of Mechatronics
Le Thanh Hai
2-22
Chapter 2 - 8255
MODE 2 COMBINATIONS
Department of Mechatronics
Le Thanh Hai
2-23
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-24
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-25
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-26
Chapter 2 - 8255
2-27
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-28
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai
2-29
Chapter 2 - 8255
Department of Mechatronics
Le Thanh Hai