Analog and Digital Circuits for Electronic Control System Applications: Using the TI MSP430 Microcontroller
by Jerry Luecke (Author). An excerpt: "Designers of analog electronic control systems have continually faced the following obstacles in arriving at a satisfactory design: 1. Instability and drift due to temperature..."
Book description
Today's control system designers face an ever-increasing need for speed and accuracy in their system measurements and computations. New design approaches using microcontrollers and DSP are emerging, and designers must understand these new approaches, the tools available, and how best to apply them.
This practical text covers the latest techniques in microcontroller-based control system design, making use of the popular MSP430 microcontroller from Texas Instruments.
The book covers all the circuits of the system, including:
- Sensors and their output signals
- Design and application of signal conditioning circuits
- A-to-D and D-to-A circuit design
- Operation and application of the powerful and popular TI MSP430 microcontroller
- Data transmission circuits
- System power control circuitry
The publisher describes the book as a practical guide to embedded system design that is heavily illustrated, works through specific circuit design examples, and includes a fully documented hands-on project built on the TI MSP430 microcontroller.
- Seasoned Texas Instruments designer provides a ground-up perspective on embedded control systems
- Pedagogical style provides a self-learning approach with examples, quizzes and review features
- CD-ROM contains source code and more!
Download description
The book was published by Newnes, an Elsevier imprint (ISBN 978-0-7506-7810-0). Details are on the Elsevier book page.
Why this kind of book is useful
Most control systems follow the same chain: a sensor turns a physical quantity into a small voltage or current, an analog circuit cleans and scales it, an analog-to-digital converter (ADC) turns it into a number, a microcontroller decides what to do, and a digital-to-analog converter, PWM output or driver acts on the world. Many engineers know one end of that chain well and the other end poorly. A book that walks through every block with one microcontroller as the anchor fills the gap, which is the approach this one takes.
What the MSP430 is
The MSP430 is Texas Instruments' family of 16-bit microcontrollers built for low power and mixed-signal work. It puts a small RISC CPU next to analog peripherals such as ADCs, comparators and timers on one chip, and it can sleep at very low current between measurements. That combination suits battery-powered sensing and control: meters, thermostats, sensor nodes and handheld instruments.
How the signal chain fits together, in outline
- Sensor: produces a signal, often millivolts, that changes with temperature, pressure or position.
- Signal conditioning: amplifies the signal to fill the ADC input range, filters noise, and removes offsets.
- Conversion: the ADC samples the voltage and returns a number.
- Processing: the microcontroller compares the reading with a set point and computes a control output.
- Output: a DAC, PWM signal or driver turns that output back into an action, such as a heater or a valve.
- Power control: the system sleeps between measurements to save energy.
Deep dive: the numbers and details
This part holds MSP430 figures from TI's family user's guide and worked examples for ADC resolution and battery life. Skip it if the overview is all you need.
MSP430 core in numbers
From TI's MSP430F2xx, MSP430G2xx Family User's Guide (SLAU144), one of the families covered by the MSP430 line:
| Feature | Value |
|---|---|
| CPU | 16-bit RISC, von Neumann memory bus |
| Instruction set | 27 instructions, 7 addressing modes, orthogonal |
| Registers | Sixteen 16-bit registers; R0 to R3 have dedicated roles (PC, SP, status, constant generator), R4 to R15 are general purpose |
| Low-power modes | LPM0 to LPM4, set by bits in the status register |
| ADC10 peripheral | 10-bit, more than 200 ksps, on-chip 1.5 V or 2.5 V reference, internal temperature sensor channel |
The same guide charts typical current for one device group ('F21x1) at 1 MHz: a few hundred microamps in active mode, tens of microamps in LPM0, and under 1 microamp in LPM3 and LPM4. That spread, more than two orders of magnitude, is the reason to design firmware that sleeps by default.
Worked example: ADC resolution and signal conditioning
The sensor values here are illustrative. With the ADC10 and the 2.5 V internal reference, one step (LSB) is:
LSB = 2.5 V / 2^10 = 2.5 / 1024 = 2.44 mV
Suppose a temperature sensor gives 10 mV per degree C, and the range of interest is 0 to 50 degrees C, so the sensor output spans 0 to 500 mV. Fed straight into the ADC, that range uses only 500 / 2.44, about 205 codes, so each code is about 0.24 degrees C. Add an amplifier with a gain of 4: the signal now spans 0 to 2.0 V, about 820 codes, and each code is about 0.06 degrees C. This is the point of signal conditioning: match the signal to the converter so the resolution you paid for is actually used. Leave some headroom below the reference so an out-of-range reading clips visibly rather than wrapping.
Worked example: battery life with duty cycling
Illustrative figures, using currents of the order shown in the TI chart: the device wakes, measures and computes for 1 percent of the time at 300 microamps, and sleeps in LPM3 at 0.9 microamps for the other 99 percent.
Average current = 0.01 x 300 + 0.99 x 0.9 = 3.0 + 0.89, about 3.9 microamps.
A 220 mAh coin cell would then last 220 mAh / 0.0039 mA, about 56,000 hours or roughly 6 years, before allowing for self-discharge, sensor current and peripheral current. Notice that the active time dominates: halving the active duty cycle saves far more than any improvement in sleep current. That is why the book's power control chapter, and good MSP430 firmware, focus on doing the work quickly and going back to sleep.


Best Software Downloads and Reviews. the most comprehensive source for free-to-
ReplyDeletetrysoftware downloads on the WebBEST 4
DOWNLOADS