Ted Van Sickle spent over fifteen years at Motorola as a microcontroller specialist. He now consults and teaches classes on software design and programming for microcontroller systems. He holds a MSEE from the University of Michigan. Introduces microcontroller
Programming Microcontrollers in C
โ Scribed by Ted VanSickle
- Publisher
- LLH Technology Pub
- Year
- 2001
- Tongue
- English
- Leaves
- 470
- Series
- Embedded technology series
- Edition
- 2nd ed
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
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
โฆ Subjects
ะะธะฑะปะธะพัะตะบะฐ;ะะพะผะฟัััะตัะฝะฐั ะปะธัะตัะฐัััะฐ;ะะธะบัะพะบะพะฝััะพะปะปะตัั;
๐ SIMILAR VOLUMES
Learn how to write your own program, debug it, and use it to start the microcontroller. We have provided plenty of practical examples with necessary connection schematics: temperature sensors, AD and DA converters, LCD and LED displays, relays,communications, and the book is constantly being updated
Learn how to write your own program, debug it, and use itto start the microcontroller. We have provided plenty ofpractical examples with necessary connection schemes:temperature sensors, AD and DA converters, LCD and LED displays, relays, communications, and the book is constantly being updated with