
- Digital Electronics - Home
- Digital Electronics Basics
- Types of Digital Systems
- Types of Signals
- Logic Levels And Pulse Waveforms
- Digital System Components
- Digital Logic Operations
- Digital Systems Advantages
- Number Systems
- Number Systems
- Binary Numbers Representation
- Binary Arithmetic
- Signed Binary Arithmetic
- Octal Arithmetic
- Hexadecimal Arithmetic
- Complement Arithmetic
- Base Conversions
- Base Conversions
- Binary to Decimal Conversion
- Decimal to Binary Conversion
- Binary to Octal Conversion
- Octal to Binary Conversion
- Octal to Decimal Conversion
- Decimal to Octal Conversion
- Hexadecimal to Binary Conversion
- Binary to Hexadecimal Conversion
- Hexadecimal to Decimal Conversion
- Decimal to Hexadecimal Conversion
- Octal to Hexadecimal Conversion
- Hexadecimal to Octal Conversion
- Binary Codes
- Binary Codes
- 8421 BCD Code
- Excess-3 Code
- Gray Code
- ASCII Codes
- EBCDIC Code
- Code Conversion
- Error Detection & Correction Codes
- Logic Gates
- Logic Gates
- AND Gate
- OR Gate
- NOT Gate
- Universal Gates
- XOR Gate
- XNOR Gate
- CMOS Logic Gate
- OR Gate Using Diode Resistor Logic
- AND Gate vs OR Gate
- Two Level Logic Realization
- Threshold Logic
- Boolean Algebra
- Boolean Algebra
- Laws of Boolean Algebra
- Boolean Functions
- DeMorgan's Theorem
- SOP and POS Form
- POS to Standard POS Form
- Minimization Techniques
- K-Map Minimization
- Three Variable K-Map
- Four Variable K-Map
- Five Variable K-Map
- Six Variable K-Map
- Don't Care Condition
- Quine-McCluskey Method
- Min Terms and Max Terms
- Canonical and Standard Form
- Max Term Representation
- Simplification using Boolean Algebra
- Combinational Logic Circuits
- Digital Combinational Circuits
- Digital Arithmetic Circuits
- Multiplexers
- Multiplexer Design Procedure
- Mux Universal Gate
- 2-Variable Function Using 4:1 Mux
- 3-Variable Function Using 8:1 Mux
- Demultiplexers
- Mux vs Demux
- Parity Bit Generator and Checker
- Comparators
- Encoders
- Keyboard Encoders
- Priority Encoders
- Decoders
- Arithmetic Logic Unit
- 7-Segment LED Display
- Code Converters
- Code Converters
- Binary to Decimal Converter
- Decimal to BCD Converter
- BCD to Decimal Converter
- Binary to Gray Code Converter
- Gray Code to Binary Converter
- BCD to Excess-3 Converter
- Excess-3 to BCD Converter
- Adders
- Half Adders
- Full Adders
- Serial Adders
- Parallel Adders
- Full Adder using Half Adder
- Half Adder vs Full Adder
- Full Adder with NAND Gates
- Half Adder with NAND Gates
- Binary Adder-Subtractor
- Subtractors
- Half Subtractors
- Full Subtractors
- Parallel Subtractors
- Full Subtractor using 2 Half Subtractors
- Half Subtractor using NAND Gates
- Sequential Logic Circuits
- Digital Sequential Circuits
- Clock Signal and Triggering
- Latches
- Shift Registers
- Shift Register Applications
- Binary Registers
- Bidirectional Shift Register
- Counters
- Binary Counters
- Non-binary Counter
- Design of Synchronous Counter
- Synchronous vs Asynchronous Counter
- Finite State Machines
- Algorithmic State Machines
- Flip Flops
- Flip-Flops
- Conversion of Flip-Flops
- D Flip-Flops
- JK Flip-Flops
- T Flip-Flops
- SR Flip-Flops
- Clocked SR Flip-Flop
- Unclocked SR Flip-Flop
- Clocked JK Flip-Flop
- JK to T Flip-Flop
- SR to JK Flip-Flop
- Triggering Methods:Flip-Flop
- Edge-Triggered Flip-Flop
- Master-Slave JK Flip-Flop
- Race-around Condition
- A/D and D/A Converters
- Analog-to-Digital Converter
- Digital-to-Analog Converter
- DAC and ADC ICs
- Realization of Logic Gates
- NOT Gate from NAND Gate
- OR Gate from NAND Gate
- AND Gate from NAND Gate
- NOR Gate from NAND Gate
- XOR Gate from NAND Gate
- XNOR Gate from NAND Gate
- NOT Gate from NOR Gate
- OR Gate from NOR Gate
- AND Gate from NOR Gate
- NAND Gate from NOR Gate
- XOR Gate from NOR Gate
- XNOR Gate from NOR Gate
- NAND/NOR Gate using CMOS
- Full Subtractor using NAND Gate
- AND Gate Using 2:1 MUX
- OR Gate Using 2:1 MUX
- NOT Gate Using 2:1 MUX
- Memory Devices
- Memory Devices
- RAM and ROM
- Cache Memory Design
- Programmable Logic Devices
- Programmable Logic Devices
- Programmable Logic Array
- Programmable Array Logic
- Field Programmable Gate Arrays
- Digital Electronics Families
- Digital Electronics Families
- CPU Architecture
- CPU Architecture
Digital Electronics - Keyboard Encoders
A keyboard encoder is an electronic device used in computer peripherals, mainly in keyboards, to convert keystrokes into digital signals. In this chapter, we will discuss the definition, types, and applications of keyboard encoders. Lets start with the basic introduction to keyboard encoders.
What is a Keyboard Encoder?
An electronic circuit which is used to translate keystrokes from physical keyboards into digital signals that a processing device can understand and process is known as a keyboard encoder. It is basically a type of encoder that encodes the information represented in alphanumeric form into digital or binary form.
A keyboard encoder acts as an interface between the physical keyboard and the processing unit of a computing system. The primary function of a keyboard encoder is to detect the key presses and encode them into binary format. This encoded signal is then sent to the processing system through a communication interface like USB, Bluetooth, etc.
Keyboard encoders are essential components in input devices like keyboards as they allow conversion of human data in machine language.
Applications of Keyboard Encoders
Keyboard encoders are mainly used in input devices like keyboards to convert physical keystrokes into digital signals that a processing device can process.
Here are some examples of applications of keyboard encoders −
- Keyboards used in desktop computers and laptops.
- Keyboard encoders are also used in gaming peripherals like gaming keyboards.
- Keyboard encoders are also used in control panels and human-machine interfaces used in industrial control systems and automation equipment.
- Keyboard encoders are also equipped in various medical devices such as medical imaging devices, patient monitoring devices, diagnostic systems, etc.
- Keyboard encoders are also important components in point-of-sales (POS) devices.
- Keyboard encoders are utilized in data entry devices like scanners, handheld devices, etc.
Keyboard encoders are essential component in input devices allowing users to input data into a processing system. They create an interface between the input hardware and digital processing unit. The above section highlights some common examples where the keyboard encoders are used.
Let us understand the circuit and working of a typical 8421 BCD keyboard encoder which is an important element in various keyboard designs. The 8421 BCD keyboard encoder provides a simple and efficient way of encoding decimal digit into binary format for processing using digital systems like microcontrollers.
8421 BCD Keyboard Encoder
The 8421 BCD keyboard encoder is a type of encoder used in keyboards and many other digital devices where decimal digits are need to be converted into a binary format or BCD (binary-coded decimal).
The diode matrix of the 8421 BCD keyboard encoder is shown in the following figure −

This keyboard encoder uses SR flip-flops to store the BCD output bits designated as Q8Q4Q2Q1.
When a key corresponding to any decimal digit between "0" and "9" is pressed, the power supply VCC turns ON the appropriate diodes which are further connected to the SET (S) and RESET (R) inputs of the flip-flops.
In this circuit, all the diodes are connected in a manner that each SR flip-flop SET or RESET to produce a combination of 4-bits representing the corresponding decimal digit in BCD format.
Let us take an example to understand the working of this 8421 BCD keyboard encoder.
When we press the key "0", the diodes connected to the R inputs of the flip-flops Q8, Q4, Q2, and Q1 are forward biased. Hence, the output will be 0000.
Similarly, when we press the key "3", the diodes connected to the R inputs of Q8 and Q4 are forward biased and the diodes connected to the S inputs of Q2 and Q1 are forwards. Hence, this produces an output as 0011.
The keyboard encoder also works in the same way for all other decimal digits.
Conclusion
In this chapter, we explained the functions and applications of keyboard encoder. Also, we highlighted the construction and working of a simple 8421 BCD keyboard encoder which is used in various small electronic devices like ATMs, POS terminals, mobile phones, and many other electronic devices.