Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(void) {
- //Stop Watchdog Timer
- WDTCTL = WDTPW + WDTHOLD;
- //Configure Port Directions
- P1DIR = (BIT0 + BIT6);
- //Loop forever
- for(;;) {
- //Produce a delay
- unsigned int i = 50000;
- while(i>0) {
- i--;
- }
- BIT0 = 0x01;
- unsigned int f = 50;
- while(f>0) {
- f--;
- }
- BIT6 = 0x40;
- }
- }
Add Comment
Please, Sign In to add comment