Jump to content
  1. News

    1. Announcements

      Blog and Forum announcements.

      1,362
      posts
    2. Suggestions

      Have a suggestion? We are all ears.

      1,268
      posts
    3. New users say Hi!

      New here? Welcome! Introduce yourself here.

      2,688
      posts
  2. Spotlight!

    1. Sponsor Spotlight

      Our sponsors not only help support our community, they also offer amazing deals to our members. Check this forum often for all the specials, deals and announcements.

      91
      posts
    2. Sponsor Giveaways

      This forum section is for current and past Sponsor Giveaways!

      109
      posts
  3. Energia

    1. Energia - MSP

      Energia is a fork of Arduino for the Texas Instruments MSP430 and MSP432 Microcontrollers. Feel free to ask any questions related to it and the developers will get back to you.

      11,312
      posts
    2. Energia - TivaC/CC3XXX

      Support for Energia on Tiva and CCC3XXX ARM Microcontrollers.

      2,964
      posts
    3. Energia - C2000

      Support for Energia on C2000 Microcontrollers.

      102
      posts
    4. 2,044
      posts
  4. MSP Technical Forums

    1. General

      General discussion about the MSP430 and MSP432. Beginners, feel free to ask your questions here.

      17,088
      posts
    2. Compilers and IDEs

      Questions about setup, compilation and errors including all open source and commercial compilers and IDEs

      2,381
      posts
    3. Development Kits

      Have a question about a particular development kit? Ask it here.

      1,586
      posts
    4. Programmers and Debuggers

      Questions about available programmers and debuggers.

      963
      posts
    5. Code vault

      Share your snippets here. You may also post any interesting code you find on the web here.

      2,611
      posts
    6. Projects

      Have an interesting project to share. Show it off here!

      8,049
      posts
    7. Booster Packs

      Member contributed and commercially available booster packs.

      3,874
      posts
    8. Energia   (72,600 visits to this link)

      Energia is a fork of Arduino for the Texas Instruments MSP430, MSP432, TivaC, CC3XXX and C2000 microcontrollers. Feel free to ask any questions related to it and the developers will get back to you.

  5. Tiva-C, Hercules, CCXXXX ARM Technical Forums

    1. General

      General discussion about the TI's Tiva-C, Hercules and CCXXXX ARM cores. Beginners, feel free to ask your questions here.

      3,104
      posts
    2. SensorTag

      Share your BLE and Wi-Fi Sensortag Projects and ask questions here.

      88
      posts
    3. Tiva-C, Hercules, CC3XXX Launchpad Booster Packs

      Designed any new plugin modules for your Tiva-C, Hercules or CCXXXX Launchpad? post them here. If you find any commercially available BoosterPacks, post them too.

      479
      posts
    4. Code Vault

      Share your ARM code snippets in this forum. You may also post any interesting code you find on the web here.

      537
      posts
    5. Projects

      Have an interesting Tiva-C or CCXXXX ARM project to share. Feel free to share it here and make this place your project journal. Upload pics and make daily updates in your own project thread.

      780
      posts
    6. Compilers and IDEs

      Ask questions related to TI Tiva-C or CCXXXX ARM compilers such as ARM-GCC, Code Composer Studio, Code-Sourcery etc and IDE's including Eclipse and Atollic.

      468
      posts
    7. Development Kits and Custom Boards

      Designed any new plugin modules for your Tiva-C or CCXXXX ARM? post them here. Discuss any freshly released development kits.

      171
      posts
  6. Beagle ARM Cortex A8 Technical Forums

    1. General

      General discussion about the Beagle board/bone and the ARM Cortex A8. Beginners, feel free to ask your questions here.

      495
      posts
    2. Code Snippets and Scripts

      Share your snippets and scripts here. You may also post any interesting code you find on the web, with credit.

      99
      posts
    3. Cases, Capes and Plugin Boards

      Feel free to ask the community about extensions, plugins and capes here. Get feedback and build new designs.

      175
      posts
    4. Projects

      Have an interesting project to share. Show it off here!

      208
      posts
  7. General Electronics Forum

    1. General Electronics

      A forum for all general electronic discussion including analog, software and PCB design. Feel free to talk and ask questions about algorithms, circuits, enclosures - anything related to electronics.

      4,065
      posts
    2. Other Microcontrollers

      Have questions on another microcontroller? Ask it here. Feel free to discuss and talk about other controllers including Atmel, Microchip, AVR, C2000, Piccolo and others.

      1,679
      posts
  8. Connect

    1. Embedded Systems/Test Equipment Deals

      Post all deals relating to embedded systems, test equipment here.

      2,356
      posts
    2. Buy, Trade and Sell

      Use this forum to trade, give away or sell your stuff. try to swap your ARM boards with one another!

      2,389
      posts
    3. The 43oh Store

      Get "The 43oh Store" releases here. Also open to suggestions for new products. Get deals here first before it is made public on the Blog.

      178
      posts
    4. 228
      posts
    5. Fireside Chat

      Discuss anything unrelated here - News, Technology or your Musings.

      2,622
      posts
  9. C2000 Technical Forums

    1. General

      General discussion about the C2000. Beginners, feel free to ask your questions here.

      540
      posts
    2. Development Kits

      Have a question about a particular development kit? Ask it here. Includes Delfino, Piccolo control cards and motion control kits. Feel free to discuss any other C2000 kits too.

      153
      posts
    3. Code Vault

      Share your snippets here. You may also post any interesting code you find on the web here.

      56
      posts
    4. Projects

      Have an interesting project to share. Show it off here!

      33
      posts
    5. BoosterPacks

      Member contributed and commercially available booster packs. Post your designs here and get feedback.

      52
      posts
  • Forum Statistics

    • Total Topics
      10,590
    • Total Posts
      80,491
  • Member Statistics

    • Total Members
      81,368
    • Most Online
      1,162

    Newest Member
    VicVaporru
    Joined
  • Latest Posts

    • Yes, that appears to work. See below. ¬†
    • Yes, of course you can do that. Just for the Launchpad the numbering is always done on the boarder of the PCB = Pin Headers of the board, as this is the point where a typical user would connect something. If you prefer for your own board to have the device pin numbers used - you can do that. Doing the updates as you mentioned above should do that ūüôā To get the board in the GUI you need to - add a device in the variants folder - as just discussed with the update of the pins_energia.h file - add a section into the boards.txt file (located in the folder above) ¬†in a section the name before the dot needs to be identical (all lines need to start with that) and this name needs to be unique So take the existing MSP430F5994 part, replace the name before the dot and the name = display name in the selection drop down menu ¬† ¬†
    • Ok, just to be sure I understand what I'm supposed to do. So, I can ignore that for the launchpad they used the pin numbers for the headers, instead of the pin out¬†on the 80 pin chip on the board, and replace it with the pin out of the 48 pin package that I used on my custom board. At line 45, I would change to SS0¬†= 16 because that's the pin that P4.0 is on the 48 pin package (if I had used that as¬†the¬†EUSCI_B0 chip select pin) line 216, I'll shorten the whole section to be 48 long, and match the pins to their function. So, whatever line is pin 16 will be: ¬† ¬† ¬†static const uint8_t P4_0 = 16; And then the arrays down below, I shorten them to be 49 long, since there is no pin 0, and rearrange them so the pins correspond to the position in the array. So, for example,¬†digital_pin_to_timer[11]¬† or the 12th line of the array would be : ¬† ¬†¬†¬† ¬†T0B2, /* 11 - P1.5 */ because on pin 11 there's the timer TB0.2 and the digital pin 1.5, even changing the comments so I don't confuse myself in case I have to come back to it in a few months. And then do the same for the other arrays. Did I miss anything? Other than trying to make the new board variant show up in the IDE, and maybe using different pins in the section at line 45 because I used¬†EUSCI_A1 for spi, instead of B0. I'll make new threads for those if I can't figure them out. Thank you so much!
    • Hi All, ¬† I was wondering if anyone could help?¬†I am trying to drive a servomotor using MSP-EXP430F5529LP. I need to drive the servo to a position, then I disconnect power to the servo using an analog switch. The servo isn't under any great load, so it doesn't move when power is disconnected. Problem is¬†MSP430 is still drawing ~ 525 uA. When¬†I comment out¬†myservo.attach(P2_5), the current consumption drops to the desired 2 uA. I've stripped away most of the code to aid debugging (see below). As far as I can tell, servo.attach() is what's causing the problem. I've read elsewhere that servo.detach() simply stops PWM signals from reaching the previously attached pin (P2_5) and that the timer¬†is still running. Presumably this is why I'm drawing so much current.¬†Can I just set the mode control bit in the TACTL register to stop the timer? Not sure if this would be enough? ¬† #include <Servo.h>¬† ¬† Servo myservo;¬† void setup()¬† {¬† ¬† P1DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; ¬† P1OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT5)+(~BIT6)+(~BIT7); ¬† P2DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT6+BIT7; ¬† P2OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT6)+(~BIT7); ¬† P3DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; ¬† P3OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT5)+(~BIT6)+(~BIT7); ¬† P4DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; ¬† P4OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT5)+(~BIT6)+(~BIT7); ¬† P5DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; ¬† P5OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT5)+(~BIT6)+(~BIT7); ¬† P6DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; ¬† P6OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT5)+(~BIT6)+(~BIT7); ¬† P7DIR |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; ¬† P7OUT &= (~BIT0)+(~BIT1)+(~BIT2)+(~BIT3)+(~BIT4)+(~BIT5)+(~BIT6)+(~BIT7); ¬† P8DIR |= BIT0+BIT1+BIT2; ¬† P8OUT &= (~BIT0)+(~BIT1)+(~BIT2); ¬†¬† ¬† myservo.attach(P2_5);¬† ¬† delay(100); ¬† myservo.detach(); ¬†¬† }¬† ¬† ¬† void loop()¬† {¬† suspend(); } ¬†
    • Hi, you are right the pins_energia.h file is the correct location for that. Just let me give you one example of how the mapping works. (line numbers are based on latest released version (1.0.7) line 45 : = pin header static const uint8_t SS0¬†¬†¬†¬† = 47;¬† /* P4.0 */ line 216: = pin header static const uint8_t P4_0 = 47; Beginning with line 457 the mapping from the pin header to the device function is done With the function above line 505 - tells it has not Timer line 560 - tell it is on Port 4 line 615 - tell it is on Port4 but now more explicit on Port 4.0 line 670 - tell is has Analog input 8 ¬† The final mapping can now be found in the datasheet. Check for mapping of Port 4.0 to the pin mapping of the device variant. ¬† ¬† ¬†
  • Projects

  • Embedded Deals + For Sale

  • Energia Libraries

×
×
  • Create New...