Skip to main content

Posts

Showing posts from February, 2015

Interfacing of Switch with LPC2148 microcontroller

Now, i discuss a program of LPC2148 microcontroller interfaced with a Switch and a LED. Earlier, i have discussed about the functions of LPC2148 microcontroller and its registers, which can help you understand the program described below. And, you also can understand the debouncing concept of switch when interfaced with microcontroller ( click here ) Program: Theory: IOPIN is the Input/Output Pin configuration which defines the current state of the GPIO configured port pins that can always be read from this register, regardless of pin direction. The denouncing switch concept has been implemented in this example code in which LED is switched on whenever a switch connected on port P0 is pressed.