MarVin666

drugie

Sep 29th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<msp430x14x.h>
  2.  
  3. void main(void)
  4. {
  5.  
  6. WDTCTL = WDTPW + WDTHOLD; // Zatrzymanie watchdog timera
  7.  
  8. P4DIR &= ~0x20;
  9. P2DIR |= 0x02;
  10.  
  11. while(1==1)
  12. {
  13. int i;
  14. for (i=0;i<20000;i++)
  15. {
  16. P2OUT |= 0x02;
  17. }
  18. for (i=0;i<20000;i++)
  19. {
  20. P2OUT &= ~0x02;
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment