LPC2148 basic programming tutorial: In the following LPC2148 tutorial 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 seven segment with LPC2148 : In this tutorial seven segment display number from 0 to 9 using ARM(LPC2148) controller. If you want to learn more kindly see tutorial on youtube as well.
>> Switch interface with LPC2148C Code: /* connection of 7-seg data P0.16 to P0.23 control P0.8 to P0. 15 */
#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() { int a; unsigned char arr[] = {0xbf, 0x86, 0xdb, 0xcf, 0xe6, 0xed, 0xfd, 0x87, 0xff, 0xef}; IODIR0 = 0xffffffff;