4x4 matrix key

2
x4 Matrix Key-board Interfacing with ATmega32 Hi guys, Here is a project for beginners to interface a 16-key (4x4) keypad with ATmega32 using 8-pins i.e. one port of the microcontroller. This is useful particularly where we need more keys but don't want to spend more uC pins for interfacing. The 4x4 keypad is a standard one available in the market. I've used here one from my earlier project. The LED shown in the schematic is just extra, which can be used anyway you like. Here, the mega32 reads the code of key pressed and sends relevant character to display on LCD 2nd line. The first line displays 'WELCOME' all the time. The figure below shows ISIS Proteus Simulation of this code: Download ------------------ Source Code (AVR-GCC, winAVR, AVRStudio format) Proteus Simulation model Source Code (CodeVision AVR format) Source Code with 4-bit LCD Implementation (ICCAVR)

Upload: dineshvhaval

Post on 27-Nov-2015

13 views

Category:

Documents


0 download

DESCRIPTION

c

TRANSCRIPT

Page 1: 4x4 Matrix Key

x4 Matrix Key-board Interfacing with ATmega32

Hi guys,Here is a project for beginners to interface a 16-key (4x4) keypad with ATmega32 using 8-pins i.e. one port of the microcontroller. This is useful particularly where we need more keys but don't want to spend more uC pins for interfacing.The 4x4 keypad is a standard one available in the market. I've used here one from my earlier project. The LED shown in the schematic is just extra, which can be used anyway you like.Here, the mega32 reads the code of key pressed and sends relevant character to display on LCD 2nd line. The first line displays 'WELCOME' all the time.

The figure below shows ISIS Proteus Simulation of this code:

Download------------------Source Code (AVR-GCC, winAVR, AVRStudio format)Proteus Simulation modelSource Code (CodeVision AVR format)Source Code with 4-bit LCD Implementation (ICCAVR)Source Code (ICCAVR) with Schematic on Google DocsHEX file

Page 2: 4x4 Matrix Key

Thanks!