- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Mode 1—strobed I/O
We call mode 1 as the strobed Input Output or handshake Input Output. We use this mode when the data is supplied by the input device to the microprocessor at irregular interval of time. A port which is functioned to program in mode uses three handshake signals. These handshake signals are provided by Port C. Only port A and B works in mode 1. The pins PC2, PC1, and PC0 provides handshake signals for port B when we configure it for Input port or Output port. Moreover, the pins PC7, PC6, and PC3 provides handshake signals for port A. The point to be noted that PC3 pin is a handshake line for Port A in the input terminal and also performing the output operations. If port A and B both works in mode 1 the remaining two pins of port C are used for performing the simple Input Output operations in mode 0. If either of Port A or B works in mode 1 then the rest 5 pins of port C are completely free.
Example 1: Configure Port A as strobed input port, Port B as strobed output port, and PC7, PC6 as output lines.
The required mode definition control word is shown in the figure below −
It is to be noted that the LS bit is a don't care bit. This is because all the four lines of Port C
lower are used for handshaking purposes some of which will be input pins and some others outputs. The 8255 will automatically configure these handshake pins, and so it is unimportant whether this LS bit is a 0 or a 1.
Bit 3 must be a 0 to indicate that PC7 and PC6 are output lines. In this case it does not mean that
the entire Port C upper is output, as PC5 and PC4 are used for handshaking purposes. The instructions to achieve this requirement assuming the chip select circuit are as follows.
MVI A, B4H ; Treating X as 0 OUT 23H
- Related Articles
- Mode 2—bi-directional I/O
- Comparison of memory-mapped I/O and I/O-mapped I/O
- I/O-mapped I/O or memory-mapped I/O in 8085 Microprocessor
- Merits of I/O-mapped I/O and demerits of memory-mapped I/O
- Demerits of I/O-mapped I/O and merits of memory-mapped I/O
- I/O-mapped I/O in 8085 Microprocessor
- JavaScript Strings: Replacing i with 1 and o with 0
- Show that:(i) $tan\ 48^o\ tan\ 23^o\ tan\ 42^o\ tan\ 67^o = 1$(ii) $cos\ 38^o\ cos\ 52^o - sin\ 38^o\ sin\ 52^o = 0$
- Differentiate between programmed I/O and interrupt driven I/O.
- Intel 8212 in mode 1
- Applications of 8212 in mode 1
- Rearrange an array so that arr[i] becomes arr[arr[i]] with O(1) extra space using C++
- Find the value of $\frac{tan60^o-tan30^o}{1+tan60^o\times tan30^o}$.
- Checking information about basic I/O operations on I/O subsystems in SAP HANA
- I/O Systems and Subsystems
