- 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
Interfacing a matrix keyboard with 8085 Microprocessor
In a matrix keyboard there are keys which are arranged in the form of a matrix which consists of several rows and columns. In the figure which is stated below significantly indicates the interfacing process of a matrix keyboard which consists four rows and four columns respectively. We connect a key at the intersection of every rows and columns. Hence there is a total of 4 × 4 = 16 keys in the given matrix. The lines of the columns get connected to Gnd through pull-down resistors.
Even there is a matrix size were to be 8 × 8, for a sum total of 64 keys, only one output port and one input port would be sufficient. The processor sends logic 1 on row 0 by the other row results in exit of logic 0 carried by the instructions
MVI A, 00000001B
OUT PC
Then the processor will start to read the input port. Presently, according to the given Byte pattern, logic 1 is sent out only on row 0. But no key is pressed on this row. As such, the input port receives the value 0000 from the keyboard because of the pull-down resistors as shown in the circuit diagram. The reader might think about the key 9 that is pressed on row 2. But logic 0 is sent out presently on row 2. Hence only logic 0 is received on column 1 via the pressed key. The processor compares the value that is read from the input port with 0000. If both are same, it means that no key is pressed on row 0.
And in this way, all rows will get scanned one after another till the last row to detect the actual key pressed. Thus the keyboard will get interfaced by the 8085 microprocessor.
- Related Articles
- Interfacing 8279 Keyboard with 8085 Microprocessor
- Interfacing a simple keyboard with 8085 Microprocessor
- Interfacing ADC with 8085 Microprocessor
- Interfacing 8251 USART with 8085 Microprocessor
- Interfacing 8279 Display with 8085 Microprocessor
- Interfacing 8253 (Timer IC) with 8085 Microprocessor
- Subtract content of two ports by interfacing 8255 with 8085 microprocessor
- Interfacing 7(Seven) Segment Display to 8085 Microprocessor
- Program for adding 2 numbers input from keyboard in 8085 Microprocessor
- Interface 8255 with 8085 microprocessor for addition
- Microprocessor 8085 Architecture
- Addressing modes of 8085 in 8085 Microprocessor
- Registers of 8085 Microprocessor
- Interfacing a speaker with Arduino
- 27128-20 Compatibility check with 8085AH in 8085 Microprocessor
