C Programming for Microcontrollers: Featuring ATMEL's AVR Butterfly and the free WinAVR Compiler
Do you want a low cost way to learn C programming for microcontrollers? This book shows you how to use Atmel's $19.99 AVR Butterfly board and the FREE WinAVR C compiler to make a very inexpensive system for using C to develop microcontroller projects. Students will find the thorough coverage of C explained in the context of microcontrollers to be an invaluable learning aide. Professionals, even those who already know C, will find many useful tested software and hardware examples that will speed their development work. Test drive the book by going to www.smileymicros.com and downloading the FREE 30 page pdf file: "Quick Start Guide for using the WinAVR Compiler with ATMEL's AVR Butterfly" which contains the first two chapters of the book and has all you need to get started with the AVR Butterfly and WinAVR. In addition to an in-depth coverage of C, the book has projects for: · Port I/O reading switches and blinking LEDs · UART communication with a PC · Using interrupts, timers, and counters · Pulse Width Modulation for LED brightness and motor speed control · Creating a Real Time Clock · Making music · ADC: Analog to Digital Conversion · DAC: Digital to Analog Conversion · Voltage, light, and temperature measurement · Making a slow Function Generator and Digital Oscilloscope · LCD programming · Writing a Finite State Machine The author (an Electrical Engineer, Official Atmel AVR Consultant, and award winning writer) makes the sometimes-tedious job of learning C easier by often breaking the in-depth technical exposition with humor and anecdotes detailing his personal experience and misadventures.
Why Read This Book
You will get a practical, example-driven introduction to writing embedded C for microcontrollers using a very low-cost AVR development board and the free WinAVR/avr‑gcc toolchain, with many tested programs that show how to use GPIO, timers, ADC, and simple peripherals. The book is especially useful if you learn by doing—its step‑by‑step projects and sample code will speed up your ability to prototype and debug real AVR firmware (the toolchain and board are dated, but the core techniques transfer to modern avr‑gcc and AVR hardware).
Who Will Benefit
Best suited for beginners and hobbyist-to-intermediate embedded engineers who want a low-cost, hands-on introduction to embedded C and AVR microcontroller peripherals and prototyping.













