SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By bubbalo
#67467
Hello,

I was wondering if any of you guys could help me by showing me some C code for a 4x4 keypad that I want to interface with an Atmega16. This is the first project I am doing so I was wondering If I could get any help from you guys. Really appreciate your help in advance. Thank you
By stevech
#67468
Take a look in the Projects section on the avrfreaks.net forum.
User avatar
By bigglez
#67474
bubbalo wrote:I was wondering if any of you guys could help me by showing me some C code for a 4x4 keypad that I want to interface with an Atmega16.
What hardware are you using? If your AVR is in a
development sytem, Arduino, or third party PCB,
the project would be a little easier than starting with
just the raw AVR chip.
By bubbalo
#67478
I'm not using any hardware... I want to get this done on a protoboard just with the AVR chip.
User avatar
By bigglez
#67480
bubbalo wrote:I'm not using any hardware... I want to get this done on a protoboard just with the AVR chip.
A protoboard is hardware...

How is the switch matrix connected to the AVR?
What ports are used?
Does the AVR use the internal RC osc or a crystal?
What does the AVR do when a switch is pressed?
What if two (or more) are pressed together?

I hope that you can see there are two parts to this
project, and software is only one of them.