The Keyboard Display interface scans the Keyboard to identify if any key has been pressed and sends the code of the pressed key to the CPU. It also transmits the data received from the CPU, to the display device. Both of these functions are performed by the controller in repetitive fashion without involving the CPU. The Keyboard is interfaced either in the interrupt or the polled mode. In the interrupt mode, the processor is requested service only if any key is pressed, otherwise the CPU can proceed with its main task.
|Published (Last):||27 October 2008|
|PDF File Size:||11.17 Mb|
|ePub File Size:||5.81 Mb|
|Price:||Free* [*Free Regsitration Required]|
Right or left entry byte display RAM. Programmable scan timing. Used for Interaction between keyboard and different microprocessor. Keyboard section: The keyboard section consists of eight return lines RL0 - RL7 that can be used to form the columns of a keyboard matrix.
The keys are automatically debounced. The two operating modes of keyboard section are 2-key lockout and N-key rollover. In the 2-key lockout mode, if two keys are pressed simultaneously, only the first key is recognized.
The FIFO can store eight key codes in the scan keyboard mode. The status of the shift key and control key are also stored along with key code. The generates an interrupt signal when there is an entry in FIFO. In sensor matrix mode, the state i. If the state of any of the switches changes, then the asserts IRQ as high to interrupt the processor. The output lines can be used either as a single group of eight lines or as two groups of four lines, in conjunction with the scan lines for a multiplexed display.
The output lines are connected to the anodes through driver transistors in case of common cathode 7-segment LEDs. The cathodes are connected to scan lines through driver transistors.
The display can be blanked by BD low line. The display section consists of 16 x 8 display RAM. In decoded scan mode, the output of the scan lines will be similar to a 2-to-4 decoder. In encoded scan mode, the output of scan lines will be binary count, and an external decoder should be used to convert the binary count to decoded output.
The scan lines are common for keyboard and display. It has an interrupt request line IRQ, for interrupt driven data transfer with processor. An internal prescaler divides an externally applied clock by an integer between 2 and 31 both inclusive to produce the internal clock. Interfacing of with [ edit ] In a microprocessor based system, when a keyboard and a 7-segment LED display are interfaced using ports or latches then the processor has to carry the following task.
8279 - Programmable Keyboard
The keyboard first scans the keyboard and identifies if any key has been pressed. It then sends their relative response of the pressed key to the CPU and vice-a-versa. The Keyboard can be interfaced either in the interrupt or the polled mode. In the Interrupt mode, the processor is requested service only if any key is pressed, otherwise the CPU will continue with its main task. In the Polled mode, the CPU periodically reads an internal flag of to check whether any key is pressed or not with key pressure. How Does Keyboard Work?