How To Develop Embedded Software
How To Develop Embedded Software
Minimum price
Suggested price
How To Develop Embedded Software

Last updated on 2017-07-29

About the Book

The source code in this book implements a digital theremin, using a resistive X-Y touch screen, and a five position joy-switch for input.  Its output is an analog signal consisting of a selected audio waveform, modulated by an Attack-Decay-Sustain-Release envelope triggered and updated by a finger touching the resistive touch screen.

The X axis of the touchscreen controls volume, while the Y axis controls frequency.  The joy-switch controls the hardness or softness of the attack phase, and the decay rate of the envelope after the finger is removed from the screen.

Waveforms supported include square, triangle, and saw; although the waveform generation algorithm supports arbitrary single cycle waveform templates.

A free version of the GNU ARM compiler was used under Windows 7 to build the system.  Startup code and Linker script were supplied by the free IDE used to develop and debug the program.  Those files are included in the source code section of the book.

A makefile is included which can build the debug or release versions of the code without using the IDE.

The book is intended to convey a useful point of view on embedded system development, which will help working programmers develop their software engineering skill set.

Requirements, system architecture, and complete design documentation make it easy to follow the source code, or to make changes and add features as needed.

A collection of verification and validation tests are described, which can be used to make sure source code changes have not broken any features of the program.

About the Author

David Clifton
David Clifton

I have developed embedded software for 30 years.  Along the way, I have worn out several keyboards, stared holes in multiple displays, and produced firmware for a wide variety of electronic products.

Systems developed in whole or part include: Multi-parameter biofeedback system for Apple II, C and Dsp code for a television watching robot, firmware for a laser power meter, hypertext editor and math assistant for a pocket PC, autosampler firmware for a hematology instrument, robotic control and sequencer for a genetic blood assay machine, bootloader and kernel for an oximeter, portable flight planning computer, firmware for a wireless data acquisition system for bridge diagnostics, base station firmware for corrections telemetry and alcohol monitoring, communications protocol for an implantable hearing aid, usb mass storage driver, and sensor drivers for an oilfield seismic data logger, firmware for a digital theremin and a gps locator-tracker.

For more detailed information, see

Bundles that include this book

How To Develop Embedded Software
GPS Tracker Project for Cortex-M3 ARM
XY Theremin for STM32F7-DISCO
3 Books
Suggested Price
Bundle Price

Table of Contents

  • Chapter 1: Preliminaries
    • Introduction
    • Some Definitions
  • Chapter 2: The Conceptual Map
    • Documentary Aspect of the Conceptual Map
    • Mental Aspect of the Conceptual Map
    • Layers of the Conceptual Map
    • Real Engineers
  • Chapter 3: Development Processes
  • Chapter 4: Context
  • Chapter 5: Requirements Analysis
    • Use Case Summary
    • Formal Requirements List
    • Reverse Engineering
    • Requirements Workshop
    • Requirements Model
    • Safety Issues
  • Chapter 6: Architecture
    • Digital Theremin Architecture
    • Architecture Workshop
  • Chapter 7: Estimating
    • COCOMO Method
    • Modified Function Point Method
    • Add Up The Guesses Method
    • Combining The Estimates
  • Chapter 8: Tool Selection
  • Chapter 9: Hardware Support
  • Chapter 10: Design
    • Object Interaction Diagrams
    • Object Overview Diagram
    • Object Catalog
    • Design In Safety
    • Design Review
  • Chapter 11: Code
    • Choice of Language
    • Choice of Operating System
    • Coding Standards
  • Chapter 12: Debug
    • Bug Categories
    • Advice for Debuggers
  • Chapter 13: Integrate
    • Advice for Integrators
  • Chapter 14: Verify
  • Chapter 15: Validate
    • Cellular Calculator Scripts for Estimating
    • Source Code for Application Objects
    • Vendor Documents
  • Bibliography

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub