PTG home
Catalog Search:
Search
Related Topics:
COMPUTING
Programming Languages
C++




 
C is for Control: A Laboratory Text for Hardware Interfacing with C and C++ 1/e

John Blankenship

Published July 1999 by Prentice Hall
Copyright 2000, 245 pp., Paper
ISBN: 0-02-310742-1
List Price:
$86.60

Inventory Status:
In-Stock
   
Summary

Especially designed for those with minimal C/C++ knowledge, this unique and practical book covers the use of C for controlling external devices and focuses on C's applications and on interfacing the computer to the outside world. This helpful reference can be used with any computer or microcontroller and with nearly any C/C++ compiler—even public domain compilers such as small C. KEY TOPICS: Discusses proper program organization and explores the concept of a program monitoring and controlling events external to the computer. Addresses the need for hardware and software compatability. Shows how basic components such as displays, keypads, sensors, and motors can be interfaced to a computer. Develops simple systems that demonstrate concepts and perform interesting tasks. MARKET: For readers interested in learning about C, one of the most versatile and powerful computer languages ever written.

Features

  • A focus on the use of C for controlling external devices—A mandatory text for schools that are in the process of converting their courses from assembly language to C/C++.
    • Gives instructors flexibility as it can be used with any computer or microcontroller and with nearly any C/C++ compiler—even public domain compilers such as Small C. Prepares engineering and engineering technology students to use C for interfacing applications such as controlling motors and data acquisition. Ex.___

  • A guide and reference—Especially for electronics students who must complete a senior project.
    • Helps students completing senior projects choose an appropriate project and develop the necessary control algorithms. Ex. ___

  • Critical thinking activities—Eleven application projects.
    • Encourages the student to perform research in order to enhance and expand the initial projects. Ex. ___

  • Gradual development of interfaces and algorithms.
    • Helps students to become active, engaged learners, rather than just following directions. Instructors need not require only specific parts for the laboratory exercises. Ex.___

  • Accessible approach—Does not require knowledge of standard C/C++ I/O statements.
    • Allows students with a minimal background in C/C++ to grasp key concepts without becoming overwhelmed. Ex.___



Table of Contents

I. GETTING STARTED.

Exercise 1. Program Construction.

Exercise 2. Introduction to Ports.

Exercise 3. Creating Sounds.

Exercise 4. Interfacing a 7-Segment LED.

II. INTERFACING DISPLAYS, KEYPADS, SENSORS, AND MOTORS.

Exercise 5. Multiplexing 7-Segment LEDs.

Exercise 6. Matrix Keypads.

Exercise 7. Liquid Crystal Displays.

Exercise 8. Digital to Analog Conversion.

Exercise 9. Analog to Digital Conversion.

Exercise 10. DC Motor Speed Control.

Exercise 11. Controlling Stepper Motor.

III. INTRODUCTION TO SYSTEMS.

Exercise 12. DC Motor Position Control.

Exercise 13. Intercomputer Communication.

Exercise 14. An LCD Numeric Line Editor.

Exercise 15. Displaying Text on an Oscilloscope.

Exercise 16. Understanding DRAM Operation.

Exercise 17. Controlling Multiple Motors.

Exercise 18. Ultrasonic Distance Measurement.

IV. SUGGESTIONS FOR PROJECTS.

Project 1. An Elevator System.

Project 2. Determiners Colors.

Project 3. A Light-Seeking Sensor.

Project 4. A Line-Following Robot.

Project 5. Satellite Positioning.

Project 6. Audio Capture/Edit/Playback.

Project 7. A Simple Logic Analyzer.

Project 8. A Plotting Arm.

Project 9. Scrolling Signs.

Project 10. Using Servometers.

Project 11. Simulations.

Appendix: Review of C.

Index.




back to top