Page 10 - Introduction to Microcontrollers Architecture, Programming, and Interfacing of The Motorola 68HC12
P. 10
Table of Contents ix
8.4 Constants and Variables 227
8.5 Procedures and Their Arguments 231
8.6 An Example 233
8.7 Object-Oriented Programming in C++ 236
8.8 Summary 245
Problems 246
9 Implementation of C Procedures 253
9.1 Global and Local Variables 254
9.2 Expressions and Assignment Statements 257
9.3 Conditional Statements 265
9.4 Loop Statements, Arrays, and Structs 274
9.5 Procedure Calls and Arguments 279
9.6 Examples from Character String Procedures 282
9.7 Summary 286
Problems 287
10 Elementary Data Structures 291
10.1 What a Data Structure Is 291
10.2 Indexable Data Structures 293
10.3 Sequential Data Structures 298
10.4 Linked List Structures 304
10.5 Summary 310
Problems 311
11 Input/Output 317
11.1 Input and Output Devices 317
11.2 Parallel Ports 320
11.3 Input and Output Software 322
11.4 Synchronization Hardware 325
11.5 Gadfly Synchronization 326
11.6 Interrupt Synchronization 329
11.7 Analog-to-Digital and Digital-to-Analog Conversion 334
11.8 UART Protocol 337
11.9 Summary and Further Reading 340
Problems 341
12 Other Microcontrollers 349
12.1 The 6811 349
12.2 The 6808 352
12.3 The 6805 356
12.4 The 68300 Series 358
12.5 The 500 Series 367