LPC2148 basic programming tutorial: In the following LPC2148tutorial i used books to learn fundamental knowledge about Embedded system. After that i install Keil compiler and Proteus simulator tool to implement following basic LPC2148 programming tutorial:
Interfacing of Relay with LPC2148: In this tutorial Relay Buzzer is interfaced with ARM(LPC2148) controller. You need to enter password "1234#", you can use this tutorial for security checking projects. If you want to learn more kindly see tutorial on youtube as well.
>> Relay Buzzer interface with LPC2148 C Code: /* connect with P0.16 to P0.23 */
#include"lpc214x.h" void delay(unsigned long int h) { unsigned long int i, j; for(j=0;j<h; j++) for(i=0;i<5000;i++); } int main() { unsigned char i, a; IODIR0 = 0xffffffff; IOCLR0 = 0xffffffff; while(1) { a=0x01; IOSET0 = a<<16; delay(1000); for(i=0;i<8;i++) { IOCLR0 = 0xffffffff; a = a << 1; IOSET0 = a << 16; delay(1000); } } } >> Proteus Design Schematic: