Catégorie : programmation
C Programming for Embedded Microcontroller
Programmation en C des microcontrôleurs embarqués

Infos. pratiques
ISBN : 978-0-905705-80-4
Auteur : Warwick A. Smith
Volume : 320 pages
Format : 170 x 235 mm
Epaisseur : 16 mm
Poids : 0,530 kg
Date de parution : 2008
Prix : 40,00 €
Langue : anglais




Contenu
Table des matières
- version PDF : C_Programming_Contents.pdf
- version HTML : voir ci-dessous
Couverture
- JPG : C programming_cover72ppp.jpg
- PDF : C programming_cover300ppp.pdf

Site de l'auteur : ---



Présentation en français
Programmation en langage C
Par essence, la technologie évolue sans cesse. Ne déplorons-nous pas que chaque année apparaissent de nouveaux microcontrôleurs qui mettent les précédents au chômage, mais réjouissons-nous de ces progrès incessants et efforçons-nous de les suivre. Ce n'est heureusement pas aussi ardu qu'on pourrait le craindre, notamment grâce au fait que pour programmer ces microcontrôleurs le langage C s'est imposé partout. Et cela ne changera pas de si tôt ! Grâce à ce livre vous apprendrez ce langage standard pour la programmation des microcontrôleurs !

Microcontrôleurs ARM
De nombreux fabricants proposent des microcontrôleurs ARM, à 32 bits, qui généralement renferment de la mémoire de taille convenable et plusieurs périphériques intégrés. Ce livre se concentre sur ceux d'Atmel, mais le langage C s'applique également aux microcontrôleurs ARM des autres fabricants, ainsi qu'aux microcontrôleurs en général.


Points forts de ce livre :

  • Utilisation exclusive de logiciels libres ou open source.
  • Description du téléchargement, de l'installation et de l'exploitation des outils de programmation en C gratuits.
  • Apprentissage plaisant du langage C par l'écriture de programmes simples pour PC avant d'attaquer la programmation embarquée - il n'est donc pas nécessaire d'acheter tout de suite un système embarqué !
  • Aucune expérience en programmation n'est nécessaire ; initiation très progressive à partir des programmes simples du premier chapitre.
  • Apprentissage par la pratique - saisie et exécution de programmes d'exemple et exercices disponibles en téléchargement sur Internet.
  • Idéal pour électroniciens amateurs, étudiants et ingénieurs désireux d'apprendre le langage C dans un environnement embarqué sur des microcontrôleurs ARM.



Présentation en anglais
The C Programming Language
Technology is constantly changing. New microcontrollers become available every year and old ones become redundant. The one thing that has stayed the same is the C programming language used to program these microcontrollers. If you would like to learn this standard language to program microcontrollers, then this book is for you!

ARM Microcontrollers
ARM microcontrollers are available from a large number of manufacturers. They are 32-bit microcontrollers and usually contain a decent amount of memory and a large number of on-chip peripherals. Although this book concentrates on ARM microcontrollers from Atmel, the C programming language applies equally to other manufacturer'sARMsas well as other microcontrollers.

Features of this book:

  • Use only free or open source software.
  • Learn how to download, set up and use freeCprogramming tools.
  • Start learning the C language to write simple PC programs before tackling embedded programming - no need to buy an embedded system right away!
  • Start learning to program from the very first chapter with simple programs and slowly build from there.
  • No programming experience is necessary!
  • Learn by doing - type and run the example programs and exercises.
  • Sample programs and exercises can be downloaded from the Internet.
  • A fun way to learn the C programming language.
  • Ideal for electronic hobbyists, students and engineers wanting to learn the C programming language in an embedded environment on ARM microcontrollers.


L'auteur
L'auteur, ingénieur en électronique, vit en Afrique du Sud.
Warwick A. Smith lives in South Africa and works as Electronics Engineer.

Autre titre du même auteur :
ARM Microcontroller Interfacing - Apprenez à interfacer n'importe quel circuit avec un microcontrôleur ARM et à écrire les programmes en C pour en tirer parti

Table des matières - Contents

Introduction Target Audience
What is an Embedded System?
Why use the C Programming Language?
Prerequisites
The Approach Taken in this Book
Some Good Advice

1 Your First C Program
1.1 About the Programming Tools
1.2 Downloading the DJGPP Compiler
1.3 Installing the DJGPP Compiler
1.4 Setting Up the DJGPP Compiler
1.5 Installing the Compiler from the Elektor Website
1.6 How C Programs are Created
1.7 Start Programming
1.8 Compiling the Program
1.9 About Your First C Program
1.10 Analysing the Program
1.11 Exercises
1.12 Summary
2 C Basics
2.1 Setting up Programmer's Notepad
2.2 How the sticky.c Program Works
2.3 Input, Output and Variables
2.4 Variable Types
2.5 Arithmetic Operators
2.6 Field Width Specifiers
2.7 Compiling and Linking
2.8 Errors and Warnings
2.9 Link Errors
2.10 Exercises
2.11 Summary
3 Comparative Operators and Decisions
3.1 Comparative Operators
3.2 Decisions
3.3 Exercises
3.4 Summary
4 The whileLoop
4.1 The whileLoop
4.2 Using ifInside the whileLoop
4.3 The Guess My Number Game
4.4 Back to the Temperature Controller Example
4.5 Commenting Programs
4.6 Programming Style
4.7 Exercises
4.8 Summary
5 Functions
5.1 Your Second Function
5.2 Passing Data to a Function
5.3 Passing More Than One Value to a Function
5.4 Passing a Variable to a Function
5.5 Getting a Value Back from a Function
5.6 Passing Values to a Function and Receiving a Value Back
5.7 Flashing LED Simulation Program
5.8 Pre-processor Directives
5.9 Functions Calling Functions
5.10 Using Multiple Source Files
5.11 Header Files
5.12 The makeProgram and Make File
5.13 How Functions Relate to Linking and Library Files
5.14 Exercises
5.15 Summary
6 Number Systems
6.1 Binary Basics
6.2 The Need for Binary Numbers
6.3 Numbering Systems
6.4 Working with Hexadecimal Numbers in C
6.5 The ASCII Alphanumeric Code
6.6 Exercises
6.7 Summary
7 Memory and Microcontrollers
7.1 Memory Basics
7.2 A Look at a Memory Chip
7.3 How Microprocessors Access Memory and Peripherals
7.4 Pointers
7.5 More on C Data Types
7.6 Choosing a Microcontroller and Embedded System
7.7 Summary
8 Your First Embedded C Program
8.1 How Embedded Programming Differs from PC Programming
8.2 The Embedded C Programming Tools
8.3 The YAGARTO Toolchain
8.4 Writing Your First Embedded Program
8.5 Exercises
8.6 Summary
9 Embedded I/O & Memory Maps
9.1 Loading a Program into SRAM
9.2 Writing to More than One LED
9.3 Reading the Switches and Writing to the LEDs (I/O)
9.4 The AT91SAM7S Memory Map
9.5 A Closer Look at the PIO Controller
9.6 Exercises
9.7 Summary
10 The DBGU Serial Port
10.1 Hardware Requirements for PC to µC Serial Communications
10.2 Programming the Serial Port
10.3 Using the sprintf()Function
10.4 Receiving Data on the Serial Port
10.5 Exercises
10.6 Summary
11 Previous C Topics Revisited
11.1 Serial Port Driver
11.2 Format Specifiers
11.3 Escape Sequences
11.4 Loops
11.5 Nested Loops and Decisions
11.6 Decision Making with the switchStatement
11.7 The Conditional Operator
11.8 Functions and Pointers
11.8.1 Returning More Than One Value from a Function
11.9 Variables and Scope
11.10 Static Variables
11.11 Floating Point Data Types
11.12 Casts
11.13 Exercises
11.14 Summary
12 Arrays and Strings
12.1 Arrays
12.2 Strings
12.3 Arrays and Addresses
12.4 Strings as Pointers
12.5 A Look at the DBGUTxMsg()Function
12.6 Multidimensional Arrays
12.7 Exercises
12.8 Summary
13 Bit Manipulation and Logical Operators
13.1 Bit Manipulation with Bitwise Operators
13.2 Logical Operators
13.3 Operator Precedence
13.4 Exercises
13.5 Summary
14 More Hardware Programming
14.1 The AT91SAM7S Timer Counter
14.2 The Analogue to Digital Converter (ADC)
14.3 Using the Timer and Interrupt
14.4 The Watchdog Timer
14.5 Summary
15 Wrapping Up
15.1 Structures
15.2 Unions
15.3 Enumerated Type
15.4 The typedefDeclarator
15.5 Storage Class Specifiers
15.6 Type Qualifiers
15.7 The gotoStatement
15.8 A List of All C Keywords
15.9 More Preprocessor Directives
15.10 Debugging
15.11 Some Final Example Programs
15.12 Summary
Appendix A: The ASCII Table
Appendix B: Source Code and Software
   PC programs Chapter 1 to Chapter 7
   Embedded Programs Chapter 8 to Chapter 15
   Software Programs
Index


Retour au catalogue
MAJ 01/04/2012