This question is a continuation of my previous thread
http://forum.allaboutcircuits.com/showthread.php?t=35917
I am trying to program my avr chip to read the keyboard data.
So I am assuming I need an interrupt function for when the clock pin goes low...etc
My problem is I am chosing one of the PORTA pins for use for the data and clock pins. However I don't know how to setup an interrupt function for a specific pin....etc
And how to have it triggered if the voltage state goes low or high.
I have included
Any help with this would be great
http://forum.allaboutcircuits.com/showthread.php?t=35917
I am trying to program my avr chip to read the keyboard data.
So I am assuming I need an interrupt function for when the clock pin goes low...etc
My problem is I am chosing one of the PORTA pins for use for the data and clock pins. However I don't know how to setup an interrupt function for a specific pin....etc
And how to have it triggered if the voltage state goes low or high.
I have included
Rich (BB code):
#include <avr/interrupt.h>
Last edited: