Advertisement
sreejith2904

Untitled

Apr 5th, 2011
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include "LPC214x.h"
  2. volatile int i;
  3.  
  4. int main()
  5. {
  6.     PINSEL0 = 0x00000000;
  7.     PINSEL1 = 0x00000000;
  8.     PINSEL2 = 0x00000000;
  9.    
  10.     FIO1DIR = ~0x003e0000;
  11.  
  12.     FIO0DIR = 0xffffffff;
  13.    
  14.     while(1){
  15.         FIO0SET = 0xffffffff;
  16.  
  17.         for(i=0;i<=100000;i++)
  18.             ;
  19.  
  20.         FIO0CLR = 0xffffffff;
  21.  
  22.         for(i=0;i<100000;i++)
  23.             ;
  24.     }
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement