Jump to content

Search the Community

Showing results for tags 'control'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 3 results

  1. I have been using a simulink model and CCSv5 to try and create the .out file for the launchpad however the file is not stored after being disconnected (ie reverts back to the out of box temperature check program) I am trying to control the h-bridges on the booster pack of the drv8711 and have attempted to follow a number of examples such as: http://uk.mathworks.com/matlabcentral/fileexchange/49109-dual-motor-control-with-ti-f28069-launchpad Having difficulty connecting and controlling the board if you could offer any suggestions or advice on simulink control methods I would be most appreciative
  2. eedem

    Servo Control With Msp430 g2553

    Hi all, I am trying to control a common rc servo with launchpad. I am using timer for pwm signals. But my code doesn't work. I am stuck. Basic codes from ti tutorials don't work either. My servo is : SM-s3317s I power it with arduino uno (5V and GND) also connect the control wire to launchpad (p1.2) . I checked the servo with arduino, it doesnt have any problem. I tried to adjust pwm period to 20 ms and also tried to have high pulses between duration of 1ms-2ms as it is seen in the code. my mcu is : g2553 Here is my code : #include <msp430g2553.h> #define SERVO_BIT BIT2 #define SM_clk 1100000 #define servo_freq 50 int i; void init() { int PWM_period = SM_clk /servo_freq; P1DIR |= SERVO_BIT; //direction is set P1SEL |= SERVO_BIT;// port 1 function is set. TA0CCR0 = PWM_period-1; // pwm period TA0CCR1 = 0; //duty cycle = TA0CCR0/ TA0CCR1 TA0CCTL1 = OUTMOD_7; } int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer init(); TA0CTL=TASSEL_2+MC_1; // starting timer by setting clock source SMCLK of timer and UP mode while(1){ TA0CCR1 = 1100; __delay_cycles(1000000); TA0CCR1 = 1300; __delay_cycles(1000000); TA0CCR1 = 1500; __delay_cycles(1000000); TA0CCR1 = 1800; __delay_cycles(1000000); TA0CCR1 = 2200; __delay_cycles(1000000); } return 0; } Does anyone have any suggestions??Is there something i did wrong?? Thanks for your time and answers!! Erdem
  3. orso2020

    simple stepper control

    // * DATE: 1/21/2013 // * DESCRIPTION: Simple program to run 8 lead stepper motor at half-steps #include "msp430g2452.h" volatile unsigned short a = 1; volatile unsigned short i = 1; volatile unsigned short j = 2; volatile unsigned short k = 3; volatile unsigned short l = 4; volatile unsigned short m = 5; volatile unsigned short n = 6; volatile unsigned short o = 7; volatile unsigned short p = 8; /* MAIN */ void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P1DIR &= ~BIT3; P1IE |= BIT3; P1DIR |= BIT0; // Set P1.0 to output direction P1DIR |= BIT1; // Set P1.6 to output direction P1DIR |= BIT2; // Set P1.1 to output direction P1DIR |= BIT4; // Set P1.2 to output direction TA0CCR0 = 15000; // Count limit (16 bit) TA0CCTL0 = 0x10; // Enable counter interrupts, bit 4=1 TA0CTL = TASSEL_1 + MC_1; // Timer A 0 with ACLK @ 12KHz, count UP _BIS_SR(LPM0_bits + GIE); // LPM0 (low power mode) interrupts enabled } #pragma vector = TIMER0_A0_VECTOR __interrupt void Timer0_A0 (void) { // Timer0 A0 interrupt service routine if (i == a) {P1OUT ^= BIT0; P1OUT = BIT0; } if (j == a) {P1OUT ^= BIT0 + BIT1; P1OUT = BIT0 + BIT1; } if (k == a) {P1OUT ^= BIT1; P1OUT = BIT1; } if (l == a) {P1OUT ^= BIT1 + BIT2; P1OUT = BIT1 + BIT2; } if (m == a) {P1OUT ^= BIT2; P1OUT = BIT2; } if (n == a) {P1OUT ^= BIT2 + BIT4; P1OUT = BIT2 + BIT4; } if (o == a) {P1OUT ^= BIT4; P1OUT = BIT4; } if (p == a) {P1OUT ^= BIT4 + BIT0; P1OUT = BIT4 + BIT0; a = 0; } a = a+1; } #pragma vector = PORT1_VECTOR __interrupt void button_push_isr(void) // Push Button Interrupt { P1IFG &= ~BIT3; // Clear P1.0 Button Flag TA0CCTL0 = 0; _BIS_SR(LPM0_bits + CPUOFF); // LPM0 (low power mode) interrupts enabled }
×