This book provides a hands-on introductory course on concepts of C programming using a PIC® microcontroller and CCS C compiler. Through a project-based approach, this book provides an easy to understand method of learning the correct and efficient practices to program a PIC® microcontroller in C language. Principles of C programming are introduced gradually, building on skill sets and knowledge. Early chapters emphasize the understanding of C language through experience and exercises, while the latter half of the book covers the PIC® microcontroller, its peripherals, and how to use those peripherals from within C in great detail.
This book demonstrates the programming methodology and tools used by most professionals in embedded design, and will enable you to apply your knowledge and programming skills for any real-life application. Providing a step-by-step guide to the subject matter, this book will encourage you to alter, expand, and customize code for use in your own projects.
- A complete introduction to C programming using PIC microcontrollers, with a focus on real-world applications, programming methodology and tools
- Each chapter includes C code project examples, tables, graphs, charts, references, photographs, schematic diagrams, flow charts and compiler compatibility notes to channel your knowledge into real-world examples
- Online materials include presentation slides, extended tests, exercises, quizzes and answers, real-world case studies, videos and weblinks
Introduction Chapter 1: C Overview and Program Structure Chapter 2: Constants Chapter 3: Preprocessor Directives Chapter 4: Data Variable and Types Chapter 5: Expressions and Operators Chapter 6: Statements Chapter 7: Functions Chapter 8: Arrays Chapter 9: Structures Chapter 10: Memory and Pointers Chapter 11: Built-in Functions Chapter 12: Strings Chapter 13: Function-like Macros Chapter 14: Conditional Compilation Chapter 15: PIC® Microcontroller Chapter 16: Discrete Input and Output Chapter 17: Interrupts Chapter 18: Timers/Counters Chapter 19: Advanced Timing Chapter 20: Analog Techniques Chapter 21: Internal Serial Busses Chapter 22: External Serial Busses Chapter 23: Multi-tasking Chapter 24: Inline Assembly Chapter 25: Debugging Appendices A, B and C
Mark Siegesmund is a software engineer with over 30 years of experience in embedded sytems within the military, industrial and commercial sectors. He is the founder of Custom Computer Services, Inc. (CCS). CCS specializes in embedded software and hardware, offering development tools for Microchip MCUs and DSCs, as well as a line of embedded Ethernet development.