Jump to content
43oh

frozencarbonite

Members
  • Content Count

    10
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    frozencarbonite reacted to oPossum in Precision 12 MHz clock for Launchpad MCU   
    The MSP430F1612 on the Launchpad provides a 12 MHz clock to the TUSB3410 chip. This clock can also be used by the MSP430 in the 20 pin socket.
     
    Clock on pin 49 of F1612

     
    Mask off pin 49 with Kapton tape and solder a 1k resistor to the pin.
    Connect the other end of the resistor to the lower pad of C21 using a short wire.
     

     
    This test program will flash the red LED five times with the DCO at ~1 MHz and then switch to the 12 MHz external clock.
     

    #include "msp430g2231.h" void main(void) { unsigned i; volatile unsigned n = 0; WDTCTL = WDTPW | WDTHOLD; P1DIR = 0x01; P1SEL = 0x00; i = 10; do { P1OUT ^= 1; while(--n); } while(--i); BCSCTL3 = LFXT1S0 | LFXT1S1; // - Set XT1 clock type as external do { // - Wait for MSP430 to detect clock is stable IFG1 &= ~OFIFG; // Clear OFIFG n = 250; while(--n); // Wait a while } while(IFG1 & OFIFG); // Loop until OFIFG remains cleared BCSCTL2 = SELM1 | SELM0 | SELS; // - Use LFXT1CLK as clock source do { P1OUT ^= 1; while(--n); } while(1); }
  2. Like
    frozencarbonite reacted to NatureTM in TA0.0   
    If you look at the "application information" section of that datasheet, it shows what pins are connected to the timer A hardware. You're looking for TA0.1 (Timer A0, CCR1) under the "function" column. You'll see your only options are P1.2 and P1.6. I usually try to build my design around the hardware, but if that's not an option, you could use interrupts and software to make it work. It would be a matter of toggling the pin appropriately during the CCR0 and CCR1 ISR's.
     
    To use P1.6, change the instances of BIT2 to BIT6 like you did, but use P1.6, not P1.5. If you really want to use P1.5, this might be a good chance to (re)familiarize yourself with interrupts.
  3. Like
    frozencarbonite reacted to OCY in Are MSP430 wake up times clock source dependent?   
    It depends on how "deep" is the sleep.
    If only the CPUOFF is set, it only takes n cycle of MCLK to start the CUP.
    If the source of MCLK is off, extra time is needed to start up that clock.
    If DCO is off but its current source is on, it only takes a few usecs.
    If the current source is off, extra usecs are needed.
  4. Like
    frozencarbonite reacted to NJC in Basic Examples   
    My blog has a few good posts for beginners and shows how to use a few peripherals which might be a good reference in addition to all the great links already posted in this thread.
     
    http://www.msp430launchpad.com/2010/07/ ... oject.html - this post shows how to use buttons with the LaunchPad.
     
    There are a bunch of other newer posts which involve the ADC in the chip that comes with the LaunchPad.
     
    Hope thats some help.
  5. Like
    frozencarbonite got a reaction from jsolarski in Basic Examples   
    Hi again,
     
    Thought I would share some links I found very helpful as a beginner
     
    I went through this C++ tutorial a while back and it has greatly helped me understand how to code basic programs for a variety of platforms like the arduino, Microsoft Visual C++ and now the MSP430 Launchpad. I think if you are a total newcomer you should start by completing this tutorial:
    http://cplusplus.com/doc/tutorial/
     
    Particularly I keep going to this page as a good reference of what is going on when looking at examples for sometimes the simplest things are not explained:
    http://cplusplus.com/doc/tutorial/operators/
     
    Here is a great explanation of how I/O works on the Launchpad and what got my head out of arduino land:
    http://andrewroycarter.com/?s=msp430
     
    Follow that up with this and memorizing the important bitwise operators:
    http://en.wikipedia.org/wiki/Bitwise_operator
     
    Cde's link seems very promising for newcomers but needs fleshed out especially the analog section:
    http://processors.wiki.ti.com/index.php ... _Community
     
    and then the more advanced projects and blogs
     
    Oh and of course 43oh forum :!: The community here seems very knowledgeable and helpful find what info you need rather than pouring over the fragmented bits of info strewn across the web.
     
    Thanks again
  6. Like
    frozencarbonite got a reaction from gatesphere in Basic Examples   
    Hi again,
     
    Thought I would share some links I found very helpful as a beginner
     
    I went through this C++ tutorial a while back and it has greatly helped me understand how to code basic programs for a variety of platforms like the arduino, Microsoft Visual C++ and now the MSP430 Launchpad. I think if you are a total newcomer you should start by completing this tutorial:
    http://cplusplus.com/doc/tutorial/
     
    Particularly I keep going to this page as a good reference of what is going on when looking at examples for sometimes the simplest things are not explained:
    http://cplusplus.com/doc/tutorial/operators/
     
    Here is a great explanation of how I/O works on the Launchpad and what got my head out of arduino land:
    http://andrewroycarter.com/?s=msp430
     
    Follow that up with this and memorizing the important bitwise operators:
    http://en.wikipedia.org/wiki/Bitwise_operator
     
    Cde's link seems very promising for newcomers but needs fleshed out especially the analog section:
    http://processors.wiki.ti.com/index.php ... _Community
     
    and then the more advanced projects and blogs
     
    Oh and of course 43oh forum :!: The community here seems very knowledgeable and helpful find what info you need rather than pouring over the fragmented bits of info strewn across the web.
     
    Thanks again
  7. Like
    frozencarbonite got a reaction from cde in Basic Examples   
    Hi again,
     
    Thought I would share some links I found very helpful as a beginner
     
    I went through this C++ tutorial a while back and it has greatly helped me understand how to code basic programs for a variety of platforms like the arduino, Microsoft Visual C++ and now the MSP430 Launchpad. I think if you are a total newcomer you should start by completing this tutorial:
    http://cplusplus.com/doc/tutorial/
     
    Particularly I keep going to this page as a good reference of what is going on when looking at examples for sometimes the simplest things are not explained:
    http://cplusplus.com/doc/tutorial/operators/
     
    Here is a great explanation of how I/O works on the Launchpad and what got my head out of arduino land:
    http://andrewroycarter.com/?s=msp430
     
    Follow that up with this and memorizing the important bitwise operators:
    http://en.wikipedia.org/wiki/Bitwise_operator
     
    Cde's link seems very promising for newcomers but needs fleshed out especially the analog section:
    http://processors.wiki.ti.com/index.php ... _Community
     
    and then the more advanced projects and blogs
     
    Oh and of course 43oh forum :!: The community here seems very knowledgeable and helpful find what info you need rather than pouring over the fragmented bits of info strewn across the web.
     
    Thanks again
  8. Like
    frozencarbonite got a reaction from GeekDoc in Basic Examples   
    Hi again,
     
    Thought I would share some links I found very helpful as a beginner
     
    I went through this C++ tutorial a while back and it has greatly helped me understand how to code basic programs for a variety of platforms like the arduino, Microsoft Visual C++ and now the MSP430 Launchpad. I think if you are a total newcomer you should start by completing this tutorial:
    http://cplusplus.com/doc/tutorial/
     
    Particularly I keep going to this page as a good reference of what is going on when looking at examples for sometimes the simplest things are not explained:
    http://cplusplus.com/doc/tutorial/operators/
     
    Here is a great explanation of how I/O works on the Launchpad and what got my head out of arduino land:
    http://andrewroycarter.com/?s=msp430
     
    Follow that up with this and memorizing the important bitwise operators:
    http://en.wikipedia.org/wiki/Bitwise_operator
     
    Cde's link seems very promising for newcomers but needs fleshed out especially the analog section:
    http://processors.wiki.ti.com/index.php ... _Community
     
    and then the more advanced projects and blogs
     
    Oh and of course 43oh forum :!: The community here seems very knowledgeable and helpful find what info you need rather than pouring over the fragmented bits of info strewn across the web.
     
    Thanks again
  9. Like
    frozencarbonite reacted to gatesphere in Basic Examples   
    All of my projects are rather simple. Check them out at my blog: http://blog.suspended-chord.info/
    plug>
  10. Like
    frozencarbonite reacted to simpleavr in Basic Examples   
    i found that trying the sample ti codes benefits me the most, most examples are less than 50 lines of code and well commented. i tried almost all examples and start combining some to see how things work.
     
    http://www.ti.com/lit/zip/slac463
    http://www.ti.com/lit/zip/slac467
     
    this family guide is also a must to read.
     
    http://www.ti.com/lit/pdf/slau144
  11. Like
    frozencarbonite reacted to cde in Basic Examples   
    http://processors.wiki.ti.com/index.php ... _Community
×
×
  • Create New...