Writ e a Embedded C code for Relay Interface ARM Processor.

Writ e a Embedded C code for Relay Interface ARM Processor.
#include <nxp/iolpc2148.h>


void delay()
{
  unsigned int i,j;
  for(i=0;i<0xff;i++)
    for(j=0;j<0xff;j++);
}


int main (void)
{
  PINSEL0= 0X00000000;

  PINSEL1= 0X00000000;
  IO0DIR = 0Xf0000000;      

  while(1)
  {
    IO0SET = 0XA0000000;
    delay();
    IO0CLR = 0XA0070000;
    delay();
   
   }

}
Share on Google Plus

About CONSPEAR TECH

0 comments:

Post a Comment