Keyboard Interfacing in Microprocessor | माइक्रोप्रोसेसर में कीबोर्ड इंटरफेसिंग कैसे करें?


Introduction

Keyboard Interfacing का मतलब है — एक keyboard को microprocessor (जैसे 8085 या 8086) से जोड़ना ताकि user से input लिया जा सके। Keyboard से मिलने वाला signal digital होता है, जिसे processor पढ़कर process करता है।


Keyboard Interface में उपयोगी IC:

  • Intel 8279: एक विशेष programmable keyboard और display controller chip है जो keyboard interfacing को आसान बनाती है।

8279 के मुख्य Features:

  1. 8x8 matrix keyboard support (64 keys)
  2. Debouncing और Key roll-over automatic होता है
  3. Key press को store करने के लिए internal FIFO (First-In-First-Out) buffer
  4. Scan keyboard और drive display दोनों काम एक साथ

Keyboard Interfacing Techniques:

  1. 1. Matrix Keyboard Interfacing:
    Keys को row और column format में arrange किया जाता है (जैसे 4x4 matrix)। Processor rows को scan करता है और columns को read करता है।
  2. 2. Scanning Method:
    Microprocessor rows को low और columns को high रखता है। जब कोई key press होती है, तो एक row-column short होता है जिससे key detect होती है।
  3. 3. Debouncing:
    जब key press होती है तो signal में बार-बार ऑन-ऑफ होता है, इसे smooth करने के लिए debouncing logic use किया जाता है। 8279 IC में यह automatic होता है।

Interfacing Diagram (8279 with 8086):

8086 ➝ Address Bus ➝ 8279
8086 ➝ Data Bus ➝ 8279
8086 ➝ Control Signals (RD, WR, CS) ➝ 8279

Keyboard Matrix ➝ Rows/Columns ➝ 8279


Keyboard Modes:

  • Encoded Mode: Key code processor को directly मिलता है
  • Decoded Mode: Matrix location को decode कर के key की जानकारी मिलती है

निष्कर्ष (Conclusion)

Keyboard Interfacing किसी भी embedded या microprocessor-based सिस्टम के लिए महत्वपूर्ण है। 8279 IC इस process को आसान और efficient बनाती है। Matrix scan, debouncing और buffer जैसे features system को reliable बनाते हैं।

Related Post

Comments

Comments