Monday, September 28, 2009
Interfacing a Microcontroller with a PS/2 Keyboard
NerdKits - Interrupts: Interfacing a Microcontroller with a PS/2 Keyboard: "A very important step when moving from basic microcontroller programming to advanced microcontroller programming is the introduction of interrupts into your code. Interrupts are pieces of code, much like functions, that are executed when outside events occur. Interrupts can be used to react to all sorts of outside inputs including pin changes driven by outside devices. With the use of interrupts, you give your code the ability to react to events as they happen (interrupting your other code), instead of waiting for your code to get to a place where it can handle an event (which is known as 'polling'). It is a programing idea that can take some getting used to, but the power it gives you in an embedded system is well worth the effort."