0% found this document useful (0 votes)
6 views1 page

Encoded Scan Mode

The Encoded Scan Mode of the Intel 8279 is designed for efficient keyboard input handling by scanning a keyboard matrix and outputting a binary-encoded keycode for the pressed key. This mode simplifies key press detection and allows the microprocessor to read the encoded keycode from a FIFO buffer, eliminating the need for decoding row-column positions. Additionally, the 8279 generates an interrupt to notify the CPU when a key press occurs and data is available.

Uploaded by

ronnyhalder007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Encoded Scan Mode

The Encoded Scan Mode of the Intel 8279 is designed for efficient keyboard input handling by scanning a keyboard matrix and outputting a binary-encoded keycode for the pressed key. This mode simplifies key press detection and allows the microprocessor to read the encoded keycode from a FIFO buffer, eliminating the need for decoding row-column positions. Additionally, the 8279 generates an interrupt to notify the CPU when a key press occurs and data is available.

Uploaded by

ronnyhalder007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1 Encoded Scan Mode in 8279

2
3 The Encoded Scan Mode is one of the operational modes of
4 the Intel 8279, specifically designed for handling keyboard
5 inputs. In this mode, the 8279 scans a keyboard matrix and
6 outputs a binary-encoded keycode corresponding to the key
7 pressed. This mode reduces the complexity of reading key
8 presses by providing a pre-encoded value to the microprocessor.
9 How Encoded Scan Mode Works
10
11 Keyboard Matrix Scanning:
12 The 8279 scans the rows and columns of the keyboard
13 matrix to detect which key is pressed.
14 It scans sequentially through the rows (or columns)
15 using the internal scan counter.
16 When a key press is detected, the row and column
17 combination is identified.
18
19 Keycode Generation:
20 Instead of outputting the raw row and column address
21 of the pressed key, the 8279 encodes the key position
22 into a binary value (keycode).
23 This keycode represents the position of the key in
24 the matrix.
25
26 Keycode Storage:
27 The encoded keycode is placed into the FIFO (First In,
28 First Out) buffer, where it waits to be read by the
29 microprocessor.
30
31 Interrupt Generation:
32 The 8279 generates an interrupt signal to notify
33 the CPU that a key press has occurred and data is
34 available in the FIFO buffer.
35
36 CPU Interaction:
37 The CPU reads the encoded keycode from the FIFO
38 buffer via the data [Link] CPU processes the
39 keycode directly, without needing to decode
40 the row-column position.

You might also like