690 likes | 3.7k Views
Interfacing of Matrix Keyboard with 8051. Keyboards , LCDs most widely used input/output devices of the 8051 Contents to be covered: keyboard fundamentals key press and key detection mechanisms Details of keyboard interfacing to 8051. Key not pressed. Key pressed. C1. C1. 1. 1. P2.0
E N D
Interfacing of Matrix Keyboard with 8051 • Keyboards , LCDs most widely used input/output devices of the 8051 • Contents to be covered: • keyboard fundamentals • key press and key detection mechanisms • Details of keyboard interfacing to 8051.
Key not pressed Key pressed C1 C1 1 1 P2.0 P2.4 P2.0 P2.4 R1 R1 8051 8051 Key closure detection
Interfacing the Keyboard with 8051 • Keyboards organized in a matrix of rows and columns. • The CPU accesses both rows and column through ports • When a key pressed, a row and column make a connect; otherwise, there is no connection between row and column. • Microcontroller scans the keys continuously to identify which one has been activated