my current project is to build a controller for a sensorless BLDC motor using a MSP430G2553. I want to realize trapezoidal control with Back-EMF/zero-crossing detection. I plan to detect zero-crossing with the Comparator(CA2/3/4 vs. CA1) and generate PWM using Timer1. Timer0 will be used for things like 30
I was working on a GUI that would be able to control any and all functions on a particular MSP430 processor from a PC GUI. Only limitations a course would be P1.1 and P1.2 which are required for GUI communication. This is very very very much so a work in progress. Currently i'm writing it using WX Widgets libraries to simplify the GUI aspect of it. However, currently i'm not using a "form builder" so it is going to take a handy amount of time to write. Good c++ experience though....
This GUI would be very handy to have from a hardware/software test debug standpoint. For example, say I wanted to test out some SPI sensor I purchased, I could use a GUI such as this to send custom SPI packets to the device i'm testing and read/observe results live. That as opposed to having to write a micro.c file to do the communication and re write it every time something doesn't work.
Many thanks to rick and suggaraddict for assistance on c++ coding help
GUI Download Rev 0.5 : https://github.com/NateZimmer/MSP430-Ev ... I_EVAL.exe (windows.exe, click "view raw" to download)
(feedback on whether or not it works for you would be great. Gaurenteed to work with a FTDI RS232 -> USB. However, launchpad drivers suppperr flakey and crapey )
Remember to flash https://github.com/NateZimmer/MSP430-Ev ... er/GUI.cpp to your MSP430G2553
Source Code is now at https://github.com/NateZimmer/MSP430-Eval-Tool
(your going to need to download and BUILD the wx libraries to get this to work)
Main Connect tab: Implemented
Digital Output tab: Implemented
Digital Input tab: Implemented
SPI Tab: Implemented but not fully tested
Analog Input tab: In Progress
Connection Issue Debug
1. Make sure you got a Rev1.5 launchpad with a G2553 micro flashed with the proper code provided. Also, makesure your jumpers are set to hardware uart.
2. If that doesn't work... sadly, the TI RS232 <-> USB sucks hardcore compared to FTDI that always works. Once a connection is established, it works fine. However, getting that first connection can be a super pain. If your having connection issues, open up a terminal program(such as putty), connect to the com port of your msp430, and press the "1" key and ONLY the 1 key. If your msp430 is working properly you should receive "PING" back. At that point, close the terminal program and open up my .exe program. At that point, it should connect fine.
/* Internal reference (comp-)0.25 * VCC and turn on */
CACTL1 = CARSEL + CAREF0 + CAON;
/* Select P1.3/CA3/S2 as the compare input (comp+).
* This selection is not obvious from register bit definitions.
* The Comparator_A+ Block Diagram in sectotion Comparator_A+ Introduction
* is a better reference. */
CACTL2 = P2CA2 | P2CA1;
/* Pressing S2 will turn on the LED1 */
if ((CACTL2 & CAOUT))