Syllabus of ARM Processor Introduction to Embedded System and LPC 2148 ARM Controller: Definition of Embedded System – Features of Embedded System – Types of Embedded System – List of Embedded System Devices – LPC 2148 ARM Controller – Block Diagram – Memory and on chip peripheral devices – ARM 7TDMI-S – Debug and Emulation Trace Read More …
Category: arm tutorials
ARM lpc2148 arm7 serial interface
code #include<lpc21xx.h> unsigned char rec; void pll(); void serial_ini(); void serial_transmit(unsigned char x); void delay(int x); int main() { PINSEL0 = 0x00000005; IO0DIR=0XFFFFFFFF; serial_ini(); pll(); while(1) { serial_transmit(‘W’); // call transmit function delay(100); // calling of delay function serial_transmit(‘W’); // Read More …
led switch program
program for switching led #include <lpc214x.h> #define SwitchPinNumber 15 #define SwitchPinNumber1 10 #define SwitchPinNumber2 11 #define LedPinNumber 7 #define LedPinNumber1 12 #define LedPinNumber2 13 /* start the main program */ void delay_ms(unsigned int count) { unsigned int j=0,i=0; for(j=0;j<count;j++) Read More …