msp430-pwm-servo-sample

所属分类:单片机开发
开发工具:C
文件大小:14KB
下载次数:0
上传日期:2012-04-23 20:35:07
上 传 者sh-1993
说明:  此示例显示如何将TIMER_A0+A1 PWM与MSP430G2xx3 MCU一起使用。它控制P1.6上的两个伺服
(This example shows how to use TIMER_A0+A1 PWM with a MSP430G2xx3 MCU. It controls two servos on P1.6)

文件列表:
LICENSE (35068, 2012-04-24)
src (0, 2012-04-24)
src\Makefile (202, 2012-04-24)
src\main.c (2465, 2012-04-24)

Running MSP430G2xx3 PWM example sw@kaltpost.de http://gpio.kaltpost.de/ Introduction ------------ This example shows how to use TIMER_A0+A1 PWM with a MSP430G2xx3 MCU. It controls two servos on P1.6 and P2.2. Hardware Setup -------------- Connect signal pins of servos to P1.6 and P2.2. Also connect GND of Launchpad to GND for servors. Supply ~5V to servos from seperate power source (do NOT power from Launchpad!). Compilation ------------ This project is written for msp430-gcc on Linux (I used v4.5.3 which is available as package on ubuntu). For flashing the "mspdebug" tool was used (also from the Ubuntu package). To compile the source just issue a: make -C src This builds the firmware in the "src" subdirectory. Flashing ------------ To flash the firmware to your Launchpad you could use the "flash" make target: make -C src flash

近期下载者

相关文件


收藏者