Offering comprehensive, cutting-edge coverage, The Atmel AVR Microcontroller - Mega And Xmega in Assembly And C delivers a systematic introduction to the popular Atmel 8 - bit AVR microcontroller with an emphasis on the Mega and Xmega subfamilies. This unique first edition provides a concise and complete introduction to the assembly language programming before progressing to a review of C language syntax that helps with programming the AVR microcontroller. Emphasis is placed on a wide variety of peripheral functions useful in embedded system design, including parallel I / O port, interrupts and resets, I / O devices such as DIP switches, LEDs, seven-segment display, LCD, keypad, stepper motor, timer functions and their applications, serial interfaces including USART, SPI and I2C, A / D and D / A and the controller area network (CAN). Vivid examples demonstrate the applications of each peripheral function, which are programmed using both the assembly and C languages.