Transcription of Programming the Atmel ATmega328P in C
{{id}} {{{paragraph}}}
Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory Programming the Atmel ATmega328P in C. (for AVR-gcc V4). by Allan G. Weber 1 Introduction This document discusses the use of the avr-gcc tool chain for Programming the Atmel ATmega328P micro- controller in C. Students can install the software on their Mac or Windows systems by downloading it from a couple of web sites. The software needed for this has been installed on the MacMini systems in the OHE. 240 lab and on the iMac systems in the VHE 205 classroom. The Programming environment described below is command-line based using the Mac's Terminal program or the Windows Command Prompt. If you are not comfortable using that type of Programming environment, you'll have to find some other way to program the chips. Much if this document is generic and applies to any processor in the ATmega or ATtiny family. However parts that discuss things like memory layout are specific to the ATmega328P . If the avr-gcc compiler is used for other processors the information in these areas will have to be adjusted to match the other processor.
keep in mind that the ATmega328P processor does not contain any floating point arithmetic hardware so all floating point calculations are implemented by doing multiple 8-bit integer arithmetic operations.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}