Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "LPC214x.h"
- volatile int i;
- int main()
- {
- PINSEL0 = 0x00000000;
- PINSEL1 = 0x00000000;
- PINSEL2 = 0x00000000;
- FIO1DIR = ~0x003e0000;
- FIO0DIR = 0xffffffff;
- while(1){
- FIO0SET = 0xffffffff;
- for(i=0;i<=100000;i++)
- ;
- FIO0CLR = 0xffffffff;
- for(i=0;i<100000;i++)
- ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement