MSP430 LaunchPad Tutorial - Part 3 - ADC

Enrico Garante June 25, 20133 comments

In this new episode of our journey into MSP430 I will explain the basics of Analog to Digital Conversion on the MSP430G2231.We will write a program that will read an ADC channel and will toggle some leds based on the result of the conversion. 

We start as usual with the inclusion of the header file for the MSP430G2231, the leds stuff and with the definition of a variable that will store the result of the conversion. We also declare a function that will initialize the ADC module. [code c]

#include "msp430g2231.h"

#define LED0...


Isolated Sigma-Delta Modulators, Rah Rah Rah!

Jason Sachs April 25, 20132 comments

I recently faced a little "asterisk" problem, which looks like it can be solved with some interesting ICs. 

I needed to plan out some test instrumentation to capture voltage and current information over a short period of time. Nothing too fancy, 10 or 20kHz sampling rate, about a half-dozen channels sampled simultaneously or near simultaneously, for maybe 5 or 10 seconds.

Here's the "asterisk": Oh, by the way, because the system in question was tied to the AC mains, I needed some voltage isolation.

Without isolation, a working solution would probably cost in...


Analog-to-Digital Confusion: Pitfalls of Driving an ADC

Jason Sachs November 19, 20112 comments

Imagine the following scenario:You're a successful engineer (sounds nice, doesn't it!) working on a project with three or four circuit boards. More than even you can handle, so you give one of them over to your coworker Wayne to design. Wayne graduated two years ago from college. He's smart, he's a quick learner, and he's really fast at designing schematics and laying out circuit boards. It's just that sometimes he takes some shortcuts... but in this case the circuit board is just something to digitize some thermistor measurements -- he says he's putting on a...