Keyboard and Led by Diagram in Image
Keyboard and Led by Diagram in Image
Introduction:
The keyboard is an input device commonly used to feed alphanumeric data into a microprocessor
system. When interfacing with an 8086 microprocessor, the 8255 Programmable Peripheral Interface
(PPI) is used as an interface medium between the keyboard matrix and the microprocessor.
Components Involved:
• 8086 Microprocessor
• Matrix Keyboard
• The keyboard consists of keys arranged in rows and columns (e.g., 4x4, 8x8).
• When a key is pressed, the row and column are shorted, allowing current to flow and
enabling detection.
• Port C: Can be used for control or left unused depending on the requirement.
Working Principle:
1. Initialization:
2. Scanning Process:
o The microprocessor sets one row line low at a time through Port B.
3. Key Detection:
o If a key in the selected row is pressed, the corresponding column line reads LOW
(since it's shorted to the low row).
o The 8086 detects which key is pressed by identifying the active row and column.
4. Debouncing:
o Based on the active row and column, a unique scan code is generated.
o This scan code is used to determine which character or key was pressed.
Applications:
Advantages:
Seven-segment displays are used to show numeric data in many embedded applications. Interfacing
it with the 8086 microprocessor requires a technique to send binary data representing numbers to
the display. The 8255 PPI acts as the interface unit here.
Components Involved:
• 8086 Microprocessor
• 8255 PPI
• By turning ON/OFF specific LEDs, digits from 0 to 9 and letters can be displayed.
Working Process:
1. Initialization:
2. Sending Data:
o The microprocessor sends 8-bit data to the first 74164 shift register via Port C.
o Clock pulses (from Port B or external) are used to shift data into the register.
3. Display Enable:
o Once all bits are loaded, a latch signal locks the data.
4. Multiplexing (optional):
o If more than one display is used, they are activated one at a time rapidly.
Applications:
Advantages:
Would you like both topics as a printable PDF or with labeled diagrams for submission?
You said:
Give the working principle of both in paragraph or in short points without sub headings
ChatGPT said: