LPCX

// display 06H on LEDs #include<LPC214x.h> void delaysw(); unsigned int switchRead(); int main(){ while (1){ unsigned int data = switchRead(); // 0x0f IODIR1 = IODIR1 | (0xff << 16); // make direction as output IOSET1 = IOSET1 | (data << 16); // Writing on port 1.3 same for p0 too delaysw(); } } unsigned int…