| |
|
|
|
|
|
|
|
|
1. |
Record Nr. |
UNINA9910787821303321 |
|
|
Autore |
Siegesmund Mark |
|
|
Titolo |
Embedded C programming : techniques and applications of C and PIC MCUS / / Mark Siegesmund |
|
|
|
|
|
|
|
Pubbl/distr/stampa |
|
|
Kidlingtom, Oxford ; ; Waltham, Massachusetts : , : Newnes, , 2014 |
|
©2014 |
|
|
|
|
|
|
|
|
|
ISBN |
|
|
|
|
|
|
Edizione |
[First edition] |
|
|
|
|
|
Descrizione fisica |
|
1 online resource (421 p.) |
|
|
|
|
|
|
Disciplina |
|
|
|
|
|
|
|
|
Soggetti |
|
C (Computer program language) |
Microcontrollers |
|
|
|
|
|
|
|
|
Lingua di pubblicazione |
|
|
|
|
|
|
Formato |
Materiale a stampa |
|
|
|
|
|
Livello bibliografico |
Monografia |
|
|
|
|
|
Note generali |
|
Description based upon print version of record. |
|
|
|
|
|
|
Nota di bibliografia |
|
Includes bibliographical references. |
|
|
|
|
|
|
Nota di contenuto |
|
Half Title; Title Page; Copyright; Contents; Introduction; Chapter 1 C Overview and Program Structure; C Source Code; Comments; Program Structure; C Preprocessor Directives; Functions; Declarations; Statements and Expressions; Time; Typing Accuracy; Text Formatting; Compatibility Notes; Summary; Quiz; Chapter 2 Constants; Bits, Bytes, Etc.; Bits; Nibbles; Bytes; Syntax of C Constants; Binary; Decimal; Signed Integers; Hexadecimal; Octal; Floating Point; Fixed Point; Characters; String of Characters; True and False; Const; Tri-Graph Sequences; Compatibility Notes; Design Documentation |
SummaryQuiz; Chapter 3 Preprocessor Directives; Standard Preprocessor Directives; #define id text; #include or #include "filename"; #ifdef#ifndef#else#endif#undef; #if#else#elif#endif; #error; #nolist#list; Compatibility Notes; Nonstandard Pragmas; #warning; #use delay; About Frequency; #use rs232 (options); #fuses options; #locate id=address; #byte id=x#word id=x; #bit id=x.y; #reserve address; Bootloaders; #rom address={data}; #id data; Other Pragmas; Summary; Quiz; Chapter 4 Data Variables and Types; Data Types; Characters; Integers; Compatibility Note; Integer Format |
Enumerated TypesFixed Point; Floating Point; Interpretation Help; Floating-Point Format; Void; typedef; Declaring Variables; Identifiers; Scope of a Variable; Life of a Variable; More Qualifiers; Design |
|
|
|
|
|
|
|
|
|
|
|
Documentation; RAM; Summary; Quiz; Chapter 5 Expressions and Operators; Mathematical Operators; Compatibility Notes; Operator Precedence; Expression Type and Type Conversion; Relational Operators; Binary Bitwise Operators; Compatibility Notes; Assignment Operators; Increment/Decrement Operators; Other Operators; Sequence Points; Expression Examples; Summary; Quiz; Chapter 6 Statements |
if Statementwhile Loops; for Loop; Jump Statements; switch/case Statement; Side Effects; Nesting, Indentation, and Use of Braces; Design Documentation; Program Complexity; Summary; Quiz; Chapter 7 Functions; main() FUNCTION; Function Definitions; Function Parameters; Compatibility Notes; Reference Parameters; Default Parameters; Overloaded Functions; Return Values; Inline Functions; Nested Functions; Recursive Functions; A Little More on Sequence Points; Well-Structured Programs; Design Documentation; Implementation Details; Summary; Quiz; Chapter 8 Arrays; Array Initializers; Constant Arrays |
String VariablesDimensionless Arrays; Multidimensional Arrays; Index Range; Example Array Usage; Lookup Tables; Searching Arrays; Sorting Arrays; Summary; Quiz; Chapter 9 Structures; Structure Nesting and Arrays; Structure Layout in Memory; Bit Fields; Unions; Example of Structures in a Program; Summary; Quiz; Chapter 10 Memory and Pointers; Memory; Address-of Operator; Indirection Operator; Forcing a Variable Address; Pointer Types; Pointer Math; Back to Subscripts; Back to Function Parameters; Back to Structures; Function Pointers; Other Uses for Pointers; Bad Ideas; Common Mistakes |
ROM Pointers |
|
|
|
|
|
|
Sommario/riassunto |
|
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 peri |
|
|
|
|
|
|
|
| |