Sunday, December 5, 2010

C programming for MicroControlers

Table of Contents:
Chapter 1: Introduction
Why C?
Why AVR?
Goals
Chapter 2: Quick Start Guide
Software
WinAVR – Oh, Whenever…
Programmers Notepad
AVRStudio – FREE and darn well worth it
Br@y++ Terminal:
Hardware.
Constructing Your Development Platform.
Blinking LEDs – Your First C Program.
Write it in Programmers Notepad..
Download to the Butterfly with AVRStudio.
Blinky Goes Live.
Simulation with AVRStudio.
GOOD GRIEF!.
Chapter 3: A Brief Introduction to C – What Makes Blinky Blink?.
Comments.
Include Files..
Expressions, Statements, and Blocks.
Operators.
Flow Control.
Functions..
The Main() Thing..
Chapter 4: C Types, Operators, and Expressions..
Data Types and Sizes..
Variable Names...
Constants..
Declarations..
Arithmetic Operators..
Relational and Logical Operators...
Bitwise Operators..
Assignment Operators and Expressions...
Expressions..
Precedence and Order of Evaluation...
Projects..
Port Input and Output..
Cylon Eye Speed and Polarity Control...
Chapter 5: C Control Flow.
Statements and Blocks.
If-Else and Else-If.
Switch.
Loops – While, For and Do-while...
Break and Continue
Goto and Labels.......
A few practical examples: strlen, atoi, itoa, reverse.
Chapter 6: C Functions and Program Structures.
Function Basics...
Returns....
Variables External, Static, and Register....
Scope..
Headers.
Blocks.....
Initialization..
Recursion.......
Preprocessor..
Projects............
Is anybody out there? Communicating with a PC..
Chapter 7: Microcontroller Interrupts and Timers..
Interrupts..
Projects.......
Grab your joystick – and test your interrupts..
Timers/Counters...
Calibrating the Butterfly oscillator:...
Projects...
Precision Blinking...
Pulse Width Modulation – LED Brightness Control.
Pulse Width Modulation - Motor Speed Control..
Speedometer...
Chapter 8: C Pointers and Arrays...
Addresses of variables........
Function Arguments....
Arrays....
FIFOs and LIFOs: Stacks and Queues (Circular Buffers).
Function Pointers...
Complex Pointer and Array Algorithms.......
Projects.........
Messenger....
Does anybody know what time it is? A Real Time Clock.
Music to my ears. “Play it again Sam.”....
Chapter 9 – Digital Meets Analog – ADC and DAC
But First - A Debugging Tale...
Analog to Digital Conversion...
Projects...
DAC and ADC - Function Generator / Digital Oscilloscope...
Chapter 10: C Structures.
Structure Basics.
Structures and Functions..
Structure Arrays..
Typedef....
Unions..
Bit-fields..
Projects.....
Finite State Machine.....
Chapter 11 The Butterfly LCD...
PC to LCD test program.
Conclusion...
Appendix 1: Project Kits...
Appendix 2: Soldering Tutorial..
Appendix 3: Debugging Tale...
Appendix 4: ASCII Table......
Appendix 5: Decimal, Hexadecimal, and Binary.....
Appendix 6: Motor Speed Control Wheel..
Appendix 7: HyperTerminal...
Index.....


Downlaod

No comments:

Post a Comment