Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "msp430.h"
- #define BSLSKEY_ 0xFFDE
- const_sfrw(BSLSKEY, BSLSKEY_);
- BSLSKEY = 0;
- void main(void)
- {
- WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
- P6DIR |= 0x01; // Set P6.0 to output direction
- P6SEL &= ~0x01; // Set P6.0 to output direction
- for (;;)
- {
- volatile unsigned int i;
- P6OUT ^= 0x01; // Toggle P6.0 using exclusive-OR
- i = 50000; // Delay
- do (i--);
- while (i != 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement