Jump to content

rohit

Members
  • Content Count

    1
  • Joined

  • Last visited


Reputation Activity

  1. Like
    rohit reacted to Tribes in Sensorless BLDC motor control   
    Hi there,
     
    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
    BLMC_.zip




  2. Like
    rohit reacted to username in MSP430 PC GUI Eval Tool   
    Hey all,
     
    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.
  3. Like
    rohit reacted to Rei Vilo in LaunchPad Pin Assignment   
    Rick, thank you for the pins number.
     
    It seems that Energia has defined P2.0 for CS and UCBA isn't implemented:
     

    /** * File: usci_spi.c - msp430 USCI SPI implementation */ /** * spi_initialize() - Configure USCI UCB0 for SPI mode * * P2.0 - CS (active low) * P1.5 - SCLK * P1.6 - MISO aka SOMI * P1.7 - MOSI aka SIMO * */
     

    (updated)
    LaunchPad MSP430G2553.xls.zip
  4. Like
    rohit reacted to energia in Interrupts for a Newbie   
    Same as in Arduino.
     

    volatile int state = HIGH; volatile int flag = HIGH; int count = 0; void setup() { Serial.begin(9600); pinMode(GREEN_LED, OUTPUT); digitalWrite(GREEN_LED, state); attachInterrupt(PUSH2, blink, FALLING); } void loop() { digitalWrite(pin, state); if(flag) { count++; Serial.println(count); flag = LOW; } } void blink() { state = !state; flag = HIGH; }
  5. Like
    rohit reacted to Hekebit in LaunchPad Pin Assignment   
    Another Quick Reference.
    Regards
     

  6. Like
    rohit reacted to energia in Comparator Use   
    This should help you to get going.
     

    void setup() { pinMode(RED_LED, OUTPUT); /* 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; } void loop() { /* Pressing S2 will turn on the LED1 */ if ((CACTL2 & CAOUT)) digitalWrite(RED_LED, HIGH); else digitalWrite(RED_LED, LOW); }
×
×
  • Create New...