




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
lecture notes for microprocessor
Typology: Study notes
1 / 121
This page cannot be seen from the preview
Don't miss anything!
DEEPAK.P
Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1
DEEPAK.P UNIT 4 2
DEEPAK.P 4 19/9/
It is an I/O port chip used for interfacing I/O devices with microprocessor. The parallel input-output port chip 8255 is also called as programmable peripheral input-output port. The Intel’s 8255 is designed for use with Intel’s 8-bit, 16-bit microprocessors.
The port A lines are identified by symbols PA 0 - PA 7 while the port C lines are identified as PC 4 - PC 7. Similarly, Group B contains an 8-bit port B, containing lines PB0-PB7 and a 4-bit port C with lower bits PC0- PC3. All of these ports can function independently either as input or as output ports. This can be achieved by programming the bits of an internal register of 8255 called as control word register ( CWR ).
Block Diagram of 8255 (^) Two control groups, labeled group A control and group B control define how the three I/O ports operate. (^) One of the 4 bit group is associated with group A control and the other 4 bit group with group B control device signals. (^) The upper 4 bits of port C are associated with group A control while the lower 4 bits are associated with group B control. The final logic blocks are read/write control logic and data bus buffer.
Block Diagram of 8255 These blocks provide the electrical interface between the micro processor and 8255. The data bus buffer buffers the data I/O lines to/from the microprocessor data bus. The read/write control logic routes the data to and from the correct internal registers with the right timing.
Pin Diagram of 8255 (^) The 8255 is a 40 pin integrated circuit (IC), designed to perform a variety of interface functions in a computer environment. (^) D0 - D7 These are the data input/output lines for the device. (^) All information read from and written to the 8255 occurs via these 8 data lines. (^) CS ( Chip Select Input ). If this line is a logical 0, the microprocessor can read and write to the 8255. (^) RD ( Read Input ) Whenever this input line is a logical 0 and the CS input is a logical 0, the 8255 data outputs are enabled onto the system data bus.
Pin Diagram of 8255 (^) WR ( Write Input ) Whenever this input line is a logical 0 and the CS input is a logical 0, data is written to the 8255 from the system data bus (^) A0 - A1 ( Address Inputs ) The logical combination of these two input lines determines which internal register of the 8255 data is written to or read from. (^) RESET The 8255 is placed into its reset state if this input line is a logical 1. All peripheral ports are set to the input mode.
Modes of 8255 There are 3 I/O modes of operation for the ports of 8255. Mode 0, Mode 1, and Mode 2 1) Mode 0 - Basic I/O mode
Modes of 8255 Mode 0 Operation It is Basic or Simple I/O. It does not use any handshake signals. It is used for interfacing an i/p device or an o/p device. It is used when timing characteristics of I/O devices is well known