Search the Community

Showing results for tags 'Code Composer Studio'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


  • Community Calendar

Found 8 results

  1. Seems to me that I2C is a fairly commonly used way to communicate between MSP430G2553 and various sensors. However, I cannot seem to find a standard library that implements it. There are many home spun implementations and there doesn't seem to be a standard I2C Library. I'm VERY NEW to the embedded development world, but have been a windows programmer for 20 years. I'm used to having standard reusable libraries that do the grunt work for me so I don't have to re-invent something that has been done by others 100 times already... Am I just missing something or are all embedded developers just masochists?? Surely not.. So, does anybody know where I can find a simple I2C library that works with my MSP430G2553 in Code Composer Studio 7? Any reason why it isn't just built in? Or is it? This is a huge paradigm shift for me, so please be patient. Any help would be appreciated.
  2. Good Morning, This may be the wrong place to ask this question. If so, please let me know where to ask it.. I've been a Windows programmer for 20 years. I've pretty much stuck to User Interface development the whole time. I have been using .net and C# for the past 10 years so I am VERY SPOILED when it comes to letting the language do the grunt work and I finesse the code. I now find myself working on a personal project which requires me to program the MSP430G2553 controller. I started out by using Energia (which if you don't know, is a fork off of Arduino) The advantage of it is you can do a lot with very little code and without needing to know all the guts of the MSP430G2553. The disadvantages are that sometimes it doesn't work right. Sometimes it doesn't give you the control you need, sometimes it's hard to figure out if Energia isn't working, or if your code isn't working... Anyway, I've spent hundreds of hours getting parts of my program to work. I have been trying to get away with not having to learn how to write firmware and have to deal directly with the processor. However, I'm starting to think that I need to bite the bullet and take the time to overcome my learning curve and dive in headfirst to firmware development and the paradigm shift that comes with it. The program I am using needs to have control over changing into and out of the various Low Power Modes on the MSP430. I need to listen for interrupts. I need to use I2C to communicate with various devices that are connected to the MSP430. I need to monitor Power Level/Consumption from time to time. So, basically, I have the following questions: 1. Can Energia robustly and without errors do the above things? 2. Am I wasting my time getting all of the above accomplished using Energia? 3. Should I be using Code Composer Studio? 4. Having NEVER developed ANY controller level code outside of Arduino and Energia, what kind of Learning Curve am I looking at to accomplish the above things? 5. Where is the best place to start learning this? 6. Where is the best place to look for answers to MSP430 development questions? Thank you all in advance for any assistance and advice you might have.
  3. Hello , I'm new to this field of microcontroller and i need you quick help with a new project of mine. I'm using MSP430F5131. I will explain a little about the project : My main goal is to generate a 1 pulse per second using a 12.8MHz external oscillator. I already have a printed PCB for that project which means i got to understand what the previous designer had done and implement it into my CCS program in order to program my micro controller. i am still new to this whole microcontroller world and im eager to know more , although im short in time. I have attached an electrical wiring of the PCB to help you understand a little bit more about the project. A little explanation of the electrical wiring: An external toggle switch (from connector J6 "Internal/External Selection") switch between an external 1pps (From an external GPS) or internal 1pps (by the msp430). if we choose an internal mode then (input P2.2) a '1' (or '0' if its an active low mode which is an active low mode) sends from PJ.3 (ouput) to U4 and a 1 pulse per second gets out of P2.4 output to connectors J8 and J9 (same pulse different connectors). I can Switch signals to ON/BAD/OFF by using an external toggle switch(pins 1,2 of J3 connector) or a descrete (pin 3 of J3 connector). if i toggle the switch to on mode it sends '1'(or '0' if its an active low mode which is an active low mode) through P1.6 to U5 ( And Gate) and enables the pulse it also sends '1' through PJ.0 to U6 and converts the pulse from TTL to RS422 (differetial). The descrete switching option switches the pulse (ON/OFF) the same as the external toggle switch. This is refers to PULSE 1 , i need to implement the same thing for PULSE 2. although im still not sure what RST/NMI/SBWTDIO and TEST/SBWTCK are wired for , are these for downloading the program into the msp? im also not sure about the PJ.2 pin (FUNCTIONALITY DISABLE). I know its a lot to read but im really short in time about this project and i dont have much time to study everything. so i would be very glad if you could read the code and help me implement the functions into the code. I know that in the following code i used interupts with #pragma function . although i heard that #pragma function cannot be located in the main function - i need to generate that 1pps pulse in some conditions (which mentioned in the code under 'if' statement) but i cant use that ISR function inside the code so how can i do that? and is there another way of doing that without using interupts that can generate the same 1 pps? here's the code : #include <msp430.h> #include <intrinsics.h> unsigned int timerCount = 0; int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer P2OUT &= ~(BIT4); //preload 1pps to '0' // set I/O pins directions P1DIR |=BIT6+BIT7; //set p1.x to 11000000 P2DIR |=BIT4; // Set P2.4 to output direction PJDIR |=BIT0+BIT1+BIT3; // set pj.x output 0000 1011 P2SEL |= BIT4; //select the option of using TD0.0 in pin 2.4 P2IES |= BIT4; // high -> low is selected with IES.x = 1. P2IFG &= ~(BIT4); // To prevent an immediate interrupt, clear the flag for // P1.3 before enabling the interrupt. P2IE |= BIT4; // Enable interrupts for P1.3 // Configure XT1 (external oscillator) PJSEL |= BIT4+BIT5; // port select for xt1 UCSCTL6 &= ~(XT1OFF); //xt1 is on UCSCTL3 = 0; // FLL REFERENCE CLOCK REFERENCE = XT1 // configure TD0.0 to output of 1 pulse per second TD0CCR0=16000-1; // setting TAR count up value 16000 (12.8MHz / 8 = 1.6MHz , 1.6MHz / 100 = 16000 Hz) when 100 is passed means 1 second has passed as well //TD0CCR1= //DUTY CYCLE OF 50% //TD0CCTL1=CCIE + OUTMOD_7; //enabling interuption + RESET/SET OUTPUT MODE TD0CTL0 =MC_2+ID_3+TDSSEL_0+TAIE; //defining timer d TD0.0 (P2.4) __enable_interrupt(); for(;{ // main loop (looping forever) // EXTERNAL / INTERNAL SELECTION BY SW4 if ((P2IN & BIT2)==0){ // INTERNAL MODE PJOUT |=BIT3; // sends '1' from pj.3 output to the multiplexer U4 (uses the internal 1pps) //PULSE 1 : DESCRETE ON/OFF AND SWITCH ON/BAD/OFF if ((P2IN & BIT0)==0 || (P1IN & BIT0)==0) { //NORMAL SIGNAL OF 1PPS checks if descrete source is on or 1pps sw pulse 1 is on P1OUT |= BIT6; //ENABLES PULSE BY THE 'AND' GATE PJOUT |= BIT0; //ENABLES TTL TO RS232 CONVERTER (FOR DIFF OUTPUT) #pragma vector = TIMER0_D0_VECTOR __interrupt void TIMER0_D0(void){ if (++timerCount > 20) { // checks if the incrementation of timerCount reaches 50 (means 0.5 second has passed) P2OUT ^=BIT4; //generates 1pps out of p2.4 timerCount = 0; // resets the timer count } P2IFG &=~(BIT4); // clears the fl } } } else { P1OUT |= ~(BIT6); //DISABLES PULSE BY SENDING A '0' TO THE AND GATE } if ((P1IN & BIT2)==0) { //PULSE 1 BAD SIGNAL ??? // CODE HERE FOR BAD SIGNAL PULSE 1// } //PULSE 2 : DESCRETE ON/OFF AND SWITCH ON/BAD/OFF if ((P2IN & BIT1)==0 || (P1IN & BIT0)==0){ //NORMAL SIGNAL OF 1PPS checks if descrete source is on or 1pps sw pulse 2 is on P1OUT |= BIT7; //ENABLES PULSE BY THE 'AND' GATE PJOUT |= BIT1; //ENABLES TTL TO RS232 CONVERTER (FOR DIFF OUTPUT) #pragma vector = TIMER0_D0_VECTOR //GENERATES 1PPS EVERY 1s __interrupt void TIMER0_D0 (void){ if (++timerCount > 20) { // checks if the incrementation of timerCount reaches 100 (means 1 second has passed) P2OUT ^=BIT4; //generates 1pps out of p2.4 timerCount = 0; // resets the timer count } P2IFG &= ~(BIT4); // clears the fl } } else { P1OUT |= ~(BIT7); //DISABLES PULSE BY SENDING A '0' TO THE AND GATE } if ((P1IN & BIT3)==0){ //PULSE 1 BAD SIGNAL ??? // CODE HERE FOR BAD SIGNAL PULSE 1// } } else { //EXTERNAL MODE PJOUT |= ~(BIT3); //sends '0' from pj.3 output to the multimplexer U4 (uses the external 1pps) P1OUT |= BIT6; // ENABLES PULSE 1 P1OUT |= BIT7; //ENABLES PULSE 2 PJOUT |= BIT0; //ENABLES RS422 DIFF OUTPUT FOR PULSE 1 PJOUT |= BIT1; // ENABLES RS422 DIFF OUTPUT FOR PULSE 2 } } } return 0; Thanks in advance. PCB electrical wiring.pdf
  4. Hi all, Just made a tutorial both written and video on how to use the graphing tool built into Code Composer Studio. I meant to do this awhile back just not had the time until now, hope it proves of some use. Cheers, Ant
  5. Hello, I am having trouble building and compiling a new project in the Code Composer Studio v6. I have a Stellaris Launchpad EK-LM4F120XL. I downloaded the Stellarisware and the Code Composer Studio v6 on my C Drive. I followed the instructions in this link "" ?and I get errors when I try to builld my project. This is the Error Description Resource Path Location Type #20 identifier "tBoolean" is undefined .ccsproject /test_app_01 line 583, external location: C:\StellarisWare\driverlib\sysctl.h C/C++ Problem Any suggestions on how to solve my problem Thank You
  6. A new version of CCS with Energia Sketch import was posted on the TI CCSv6 Wiki. For those not familiar with what this is. It is a feature in Code Composer Studio v6 that allows you to point CCS at Energia, import your Sketches and then use the full debug feature of CCS to debug your Sketches. It uses mspgcc as the compiler but uses the TI emulation software to debug the LaunchPad. I have not tried the Linux version yet but the Windows one works great. Sorry for the Mac users (myself included), there is no support for Mac OS X yet. Any feedback is welcome! Robert
  7. Hey All, I tired to write a code, just check it out and tell me whether it gives out a LED glowing MSP430 or no. I know i am bad coder but i am learning it. Code is attached below. Tell me what all i should add in it. Thanks And Regards Msp.txt
  8. Hey All, Hieeeee When i am debugging my code, it is giving a error called Multiple markers at this line - <a href="file:/D:/code%20composer%20studiov5/ccsv5/tools/compiler/dmed/HTML/MSP430/1527.html">#1527-D</a> (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead - #20 identifier "ADC10TL1" is undefined ON THIS LINE while(ADC10CTL1 & ADC10BUSY); Thanks in anticipation Nikki