Help with Atmega16, newbie

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

Take a look in the Projects section on the avrfreaks.net forum.

bubbalo:
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.

I’m not using any hardware… I want to get this done on a protoboard just with the AVR chip.

bubbalo:
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.