Professional Documents
Culture Documents
Introduction of ARM
Introduction of ARM
INTRODUCTION:
flash memory ranging from 32 kB to 512 Kb.
}
}
Ex.Program(Digital I/O Control)
#include <LPC214X.H> //Header File
#define led 1<<0 //Define the pin
int main()
{
IODIR0=0XFFFFFFF0; //Set the Pin for Input or Output
PINSEL0=0X00000000; //Pin selection for Normal or Special Function
IOCLR0=0XFFFFFFF0; //Clear the Pins
while(1)
{
if(IOPIN0&0X00000002) //Check the Pin Status
{ //Condition True loop will be executed
IOSET0=led; //Set the Pin
}
if(IOPIN0&0X00000004) //Check the Pin Status
{ //Condition True loop will be executed
IOCLR0=led; //Set the Pin
}
}
}