Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <LPC214X.H> // Select Header file
  2. long i;
  3. int main()
  4. {
  5. IODIR1=0xffffffff; //This register individually controls the direction of each port pin.
  6. IOCLR1=0xffffffff; //This register controls the state of output pins.
  7. While(1) //Infinite loop
  8. {
  9. IOSET1=0x00FF0000; //This register controls the state of output pins in conjunction with the IOCLR register.
  10. For(i=0;i<100000;i++); //Delay
  11. for(i=0;i<100000;i++);
  12. IOCLR1=0xffffffff;
  13. for(i=0;i<100000;i++);
  14. for(i=0;i<100000;i++);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement