This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "msp430.h" | |
/* | |
BLDC motor driver ver1 | |
P2.0 P2.1 P2.2 go through cycle | |
010 | |
011 | |
001 | |
101 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "msp430.h" | |
/* | |
Simple PWM generator using Timer A | |
Output P1.0, PWM period about 2 ms | |
Duty cycle changes gradually from 5% to 95% | |
Compiled with msp430-gcc | |
aarmot 2013-01-16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile for msp430 assembler | |
# Build single GNU asm source | |
# | |
# 'make' builds everything | |
# 'make dump' generates assembler dump of target | |
# 'make burn' flashes target into launchpad | |
# 'make clean' deletes everything except source files and Makefile | |
# | |
# You need to set TARGET and MCU for your project |
NewerOlder