Connexions

You are here: Home » Content » 7.2 - Analog-to-Digital Converter on the MSP430
Content Actions
Lenses

What is a lens?

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...
Affiliated with (?)
This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • This module is included inLens: Rice University OpenCourseWare
    By: OpenCourseWare ConsortiumAs a part of collection:"Introduction to the Texas Instruments ez430"

    Click the "Rice University OCW" link to see all content affiliated with them.

    Rice University OCW
  • This module is included inLens: Texas Instruments MSP430
    By: Texas Instruments

    Comments:

    "How to setup the ADC peripheral on the MSP430."

    Click the "TI MSP430" link to see all content affiliated with them.

    TI MSP430
Also in these lenses
  • This module is included inLens: Jacob Borgeson's Lens
    By: Jacob Borgeson

    Click the "Jacob's" link to see all content selected in this lens.

    Jacob's
Tags

(?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

7.2 - Analog-to-Digital Converter on the MSP430

Module by: Naren Anand Based on: Analog-to-Digital Converter on the MSP430 by CJ Ganier

Summary: Explains how to use the MSP430 analog-to-digital converter (ADC).

The analog to digital converter (ADC) on the ez430 is a type called a Sigma-Delta (SD) Converter. The way it operates is slightly different from what was described in the previous section (although the end result is the same) but those specifics are out of the scope of this course. The SD converter on the ez430 has 8 channels and a 16 bit resolution. The module is highly configurable and can run largely free of program involvement. In this portion of the lab, we will broadly explain the features of the module, but the particular effects of each register are listed, as usual, in Chapter 12 of the User’s Guide.

Range of Measurement

The result of each conversion will be 16 bits long in the form of an unsigned integer whose value is:
SD16_MEMx=(65,536)Vin-VrnegVrpos-Vrneg SD16_MEMx (65,536) Vin Vrneg Vrpos Vrneg (1)
Where Vin is the input voltage to be measured, Vrneg is the lower reference voltage, and Vrpos is the higher reference voltage. The reference voltages are set to power and ground by default, but they can be changed to an internal reference generator or an externally supplied reference using the SD16CTL register.

Input Channels for the ADC

The following is a table of the 8 input channels on the ez430. "Analog signal input" channels will take any analog source (we will get to the pin mapping's shortly). Other channels perform specific tool integrated tasks. For example, channel A6 is an integrated temperature sensor. For detailed descriptions of the others, see the User's Guide.
    SD16 Input Channels
  1. A0: Analog signal input
  2. A1: Analog signal input
  3. A2: Analog signal input
  4. A3: Analog signal input
  5. A4: Analog signal input
  6. A5: Vcc-Vss11 Vcc Vss 11
  7. A6: Integrated temperature sensor
  8. A7: Short for PGA offset measurement
Here is a pin diagram corresponding to the 14 accessible pins showing which pins correspond to which input channels. Notice that each channel has a "+" and a "-" input. Although with other ADC's, we would simply have one input pin and connect the other to the ground, the SD converter requires us to connect the positive and negative inputs to the corresponding input channels. Note that the numbers from 1-14 on the chip correspond to pins 1-14 on the target board.
Pin Map
PinMap.png
Figure 1: Shows which pins correspond to specific SD converter inputs. Also shows which pins correspond to specific ports (i.e pin 4 is connected to P1.2).

Operation Reminders for the ADC

Remember the following when attempting to use the ADC:
  • Be sure to enable SD16 interrupts (on SD16CCTL0) and to select the specific channel which you are using (on SD16INCTL)
  • After configuring the ADC, you must enable the SD16SC bit to start conversion.
  • All ADC values will be stored in the SD16MEMx variable where "x" is the number of the channel
The User's Guide will be very useful for this lab because of the complexity of this part of the MSP430. Be sure to go over the chapter atleast briefly before jumping into programming.

Comments, questions, feedback, criticisms?

Send feedback