MSP430 MCU Source Code and Examples

1. GPIO: The simplest but the most important MCU Source code.
2. LCD_2X12: 4 bit data bus LCD driver Source code.
3. Speaking: The MSP430 Source code to play wave sound file.
4. Flash Memory: MSP430 flash memory writing source code.
5. P1 Interrupt: General external input interrupt source code.
6. Timer A: Every project need timer source code.
7. UART: RS-232 communication source code.
8. I2C: Use GPIO to emulate I2C master source code.
9. PWM: PWN source code for power control.
10. Playing Music: Theory and source code for playing “amazing grace”.
11. LCD240X160: Graphic LCD driver Source code.
12. Sine wave: MSP430 Sine Wave Generator up to 19K frequency.
13. IR_Decoder: General TV IR Remote Decoder Source code.
14. Merry Christmas C Source Code to play Merry Christmas and Amazing grace.
15. DS1307 C Source Code to read Real Time Clock

31 Responses to “MSP430 MCU Source Code and Examples”

  1. ilogic says:

    congratulations!
    nice work… your piano firmware, and wav files… excellent!!

  2. admin says:

    Thanks for the encouragement!
    You are the very first one who leaves me the most valuable message.
    There will be more code to be upload.

    I am going to improve the piano firmware. Use sine wave instead of square wave. Analog output instead of digital.

    Regards,
    Frank

  3. admin says:

    I am going to implement a Telephone keypad by MSP430 MCU.

    For each key on a dial pad, there are two sine waes with fixed frequency.

    DTMF Keypad Frequencies (with sound clips)
    1 2 3 697 Hz
    4 5 6 770 Hz
    7 8 9 852 Hz
    * 0 # 941 Hz
    1209 Hz 1336 Hz 1477 Hz

    For example, key 1 is consisted by a sine wave with 697Hz frequency and the one with 1209Hz frequency.

    First we need to create sine wave

    This is BV6 program for plotting a sine wave curve: f1
    Private Sub Command1_Click()
    For cnt = 0 To 3 * 628
    Y = 200 * Sin(cnt / 100)
    Form1.Picture1.PSet (cnt, 700 – Y)
    Next
    End Sub

    If we want to double the frequency: f2
    Private Sub Command2_Click()
    For cnt = 0 To 3 * 628
    Y = 200 * Sin(2 * cnt / 100)
    Form1.Picture1.PSet (cnt, 1100 – Y)
    Next
    End Sub
    If we want to get output of these two signal: f3
    Private Sub Command3_Click()
    For cnt = 0 To 3 * 628
    Y = 200 * Sin(cnt / 100)
    Y = Y + 200 * Sin(2 * cnt / 100)
    Form1.Picture1.PSet (cnt, 1700 – Y)
    Next
    End Sub

    What I need to do is to creating f1, f2 and f3.
    For more details, go to here to check it out.

  4. davi says:

    Hi, I am interested in your SINE wave generator source, but it has a dad link 404 error, pls check.

  5. admin says:

    Thanks for reporting this link. It was dead, but now is alive.
    Welcome back to http://franktu.com/ to download your interested MSP430 source code. There is alway some new code.

  6. admin says:

    Today I implemented “ADS1113, ADS1114, ADS1115- Ultra-Small, Low-Power, 16-Bit Analog-to-Digital Converter with Internal Reference – Texas Instruments” source code.

    Please check it out from http://franktu.com/

  7. admin says:

    Thanks!

  8. tab mcaally says:

    Great work keep it coming

  9. It’s not that I want to duplicate your internet site, but I really like the design. Could you tell me which theme are you using? Or was it tailor made?

  10. admin says:

    It is named as “WordPress Classic 1.5 by Dave Shea”.

  11. If you could message me with some hints & tips about how you made this website look like this, I’d appreciate it!

  12. admin says:

    My home page http://franktu.com/ is built by Frontpage. This blog is an opensource application. I only put some google Adsense code to my pages. You can put the code into any page. For this blog, you can put the code to /blog/index.php. You can do it. If need help, let me know.

    Any page on my website is open source. You can right click–>view page source–>save to get the source code of the page.

  13. Norah Jones says:

    I’m still learning from you, as I’m trying to reach my goals. I definitely love reading all that is written on your blog.Keep the aarticles coming. I enjoyed it

  14. I just honestly liked your Website. Very superb enteries written on this website. Carry on creating handy stuff. I undoubtedly wish to look at this amazing page once again.

  15. Really helpful post on firmware coding. Thanks for the tips.

  16. Jerome says:

    In what context is vDelay() defined?
    - and why is it followed with _nop()?
    * What compiler/build-environment is your code made by?

  17. Frank Tu says:

    vDelay() is at the end of http://franktu.com/universal_i2c_master.htm
    I use CrossWorks.

  18. You totally deserve a round of applause for your article and in particular, your site in general. Very high subject.

  19. Thank for posting. Very nice good site.

  20. Appreciate your inforamtion. It is just too greeeeat!

  21. Etha Decicco says:

    Glad to find this information. I have been searching in Google for long time.

  22. Nice work. You keep working on this blog please.

  23. Nice work. You keep working on this blog please.

  24. go says:

    go
    Thank you for this.

  25. I simply wanted to tell you how much I appreciate all you’ve contributed to help increase the value of the lives of folks in this theme. Through your own articles, I’ve gone out of just a novice to a pro in the area. It truly is truly a tribute to your work. Thanks

  26. I couldn’t have really asked for a much better blog. You are available to supply excellent information, going instantly to the point for easy understanding of your subscribers. You’re surely a terrific expert in this subject matter. Thank you for being there for people like me.

  27. Pretty! You describe the topic very well. Thanks once again for the push!

  28. I just wanted to inform you how much my spouse and i appreciate every thing you’ve discussed to help increase the value of the lives of individuals in this theme. Through your articles, we have gone from just an amateur to a pro in the area. It can be truly a tribute to your efforts. Thanks

  29. Many thanks for your time to have put these things together on this weblog. John and i also very much valued your ideas through the articles in certain things. I realize that you have many demands with your program hence the fact that you took the maximum amount of time like you did to guide people like us by this article is definitely highly treasured.

  30. Hola! I am following the website MSP430 MCU Source Code and Examples MSP430 Source Code for a while now and finally acquired more bravery to go ahead and give you an hi out via Porter Texas Just wanted to tell you keep up this fantastic work BTW how about Gaddafi remarkable information? Salam ! Rob Rasner LinkedIn

Leave a Reply

You must be logged in to post a comment.