Simple LaunchPad DAC

in code, how-to, MSP430 by the machinegeek | 1 comment


NJC’s MSP430 LaunchPad Blog presents this short tutorial on using DAC with the LaunchPad. He writes:

This post will show you how to generate a periodic analog signal using the LaunchPad and the MSP430G2231. For the sake of simplicity, I stuck to the default DCO value. This will allow us to generate a very clean sine wave at 128Hz. If the DCO is increased to 16MHz and a few other design parameters are changed the maximum frequency can be over 4kHz. Using the MSP430F5510 I was able to generate a crystal clear 32kHz sine wave.

Why would you want to do this? Well, this code can be modified so any arbitrary analog waveform can be generated (reasonably speaking). At the very least you will learn some interesting analog principles if you decide to build this mini-project.

This entry was posted in code, how-to, MSP430 and tagged , .

Comments

  1. Josh Franz says:

    I’m not sure if this is a bug or on purpose, but the last post to make it to your Facebook page was the Week in (P)review post.

    Let’s just hope everything works out for Free PCB Friday :)

    Good job with the server transition!

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.