hi....i am just starting with ARM microcontrollers........ i want to make a program so that i can monitor a pin like P0.8 and if its high then LED should glow on P0.22
here is pseudocode for it
#include <LPC21xx.h> #define led (1<<22) #define sw (1<<8) int main (void) { PINSEL0=sw; IODIR0=0xFFFFFFF; if (sw == 1)
IOSET0 = (1<<22); else IOCLR0 = (1<<22); }