Inkscape example drawings

This is the example Inkscape drawing we did in class:

pwm_diagram

Example source code listing:

//
// Robot arm code for MSP430G2553
// Written by Ted Burke
// Last updated 3-4-2014
//
 
#include <msp430.h>
 
int main( void )
{
    // Stop watchdog timer to prevent time out reset
    WDTCTL = WDTPW + WDTHOLD;
     
    P2DIR = 0b00000000;
    P1DIR = 0b00000001;
     
    while(1)
    {
        P1OUT = 1 - P1OUT;
        __delay_cycles(500000);
    }
     
    return 0;
}
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s