Programming Microcontrollers in C

Free Download

Authors:

Edition: 2nd ed

Series: Embedded technology series

ISBN: 9781878707574, 1878707574

Size: 7 MB (7111771 bytes)

Pages: 470/470

File format:

Language:

Publishing Year:

Category: Tags: , ,

Ted VanSickle9781878707574, 1878707574

Microcontrollers are used in automobiles, machine control systems, home appliances-in almost any application where there is some internal intelligence system. This practical tutorial reviews the essentials of C programming for microcontrollers and examines in detail the issues faced when writing C code. Geared toward embedded system designers, the book teaches how to write high-level C programming code, maximize performance, and use some of the popular microcontrollers in real-world applications. Included is a CD-ROM for Windows containing all C code used in the book, compilers for popular microcontrollers, and a fully searchable electronic version of the book. Includes CD-ROM.

Table of contents :
1.1 Some Simple Programs……Page 15
1.2 Names……Page 22
1.3 Types and Type Declarations……Page 23
1.4 Storage Classes, Linkage, and Scope……Page 26
1.5 Character Constants……Page 29
1.6 Arrays……Page 32
1.7 Other types……Page 34
1.8 Operators and Expressions……Page 38
1.9 Increment and Decrement Operators……Page 44
1.10 Precedence and Associativity……Page 48
1.11 Program Flow and Control……Page 50
1.12 Functions……Page 65
1.13 Recursion……Page 75
1.14 Summary……Page 77
2.1 Pointers……Page 79
2.2 Multidimensional Arrays……Page 94
2.3 Structures……Page 101
2.4 More Structures……Page 121
2.5 Input and Output……Page 124
2.6 Memory Management……Page 128
2.7 Miscellaneous Functions……Page 130
2.8 Summary……Page 135
3 What Are Microcontrollers?……Page 137
3.1 Microcontroller Memory……Page 141
3.2 Input/ Output……Page 143
3.3 Programming Microcontrollers……Page 148
3.4 Coding Tips for Microcontrollers……Page 151
4 Small 8- Bit Systems……Page 163
4.1 Microcontroller Memory……Page 167
4.2 Timers……Page 180
4.3 Analog- to- Digital Converter Operation……Page 209
4.4 Pulse Width Modulator System……Page 215
4.5 Other Program Items……Page 221
4.6 Summary……Page 223
5.1 Header File……Page 225
5.2 Sorting Programs……Page 244
5.3 Data Compression……Page 251
5.4 Timer Operations……Page 259
5.5 Summary……Page 299
6 Large Microcontrollers……Page 301
6.1 The MC68HC16……Page 302
6.2 System Integration Module ( SIM)……Page 310
6.3 A Pulse Width Modulation Program……Page 313
6.4 Cosmic MC68HC16 Compiler……Page 319
6.5 Table Look- Up……Page 333
6.6 Digital Signal Processor Operations……Page 340
6.7 Other MC68HC16 Considerations……Page 359
7 Advanced Topics in Programming Embedded Systems ( M68HC12)……Page 361
7.1 Numeric Encoding……Page 366
7.2 Numeric Decoding……Page 368
7.3 Coding the alpha data……Page 370
7.4 The Monitor Program……Page 384
7.5 The SAVEIT() Routine……Page 390
7.6 The printout() and the printafter() Functions……Page 392
7.7 Reset……Page 395
7.8 Input/ Output Functions……Page 396
7.9 Putting It All Together……Page 400
7.10 Summary……Page 405
8 MCORE, a RISC Machine……Page 407
8.1 Delay Routine……Page 409
8.2 Delays Revisited……Page 415
8.3 Serial Input/ Output……Page 418
8.4 Handling Interrupts……Page 427
8.5 A Clock Program……Page 433
8.6 Keyboard……Page 446
8.7 Integrating Keyboard and Clock……Page 454
8.8 Adding a Display……Page 456
8.9 Summary……Page 460

Reviews

There are no reviews yet.

Be the first to review “Programming Microcontrollers in C”
Shopping Cart
Scroll to Top