Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LPC214X.H> // Select Header file
- long i;
- int main()
- {
- IODIR1=0xffffffff; //This register individually controls the direction of each port pin.
- IOCLR1=0xffffffff; //This register controls the state of output pins.
- While(1) //Infinite loop
- {
- IOSET1=0x00FF0000; //This register controls the state of output pins in conjunction with the IOCLR register.
- For(i=0;i<100000;i++); //Delay
- for(i=0;i<100000;i++);
- IOCLR1=0xffffffff;
- for(i=0;i<100000;i++);
- for(i=0;i<100000;i++);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement