AVR microcontrollers: Difference between revisions

Content deleted Content added
+wikibook
wikify
Line 23:
*Setup tools in Linux Debian box
**login to root user
**install avr development tools, using the command "<code>apt-get install binutils-avr gcc-avr avr-libc uisp"</code>
*[http://www.linuxfocus.org/English/November2004/article352.shtml#352lfindex8 prepare a simple avr serial programmer]
**examples to use the above programmer with uisp (assume in ATmega8535, by above simple serial programmer, printer port, debian linux box, hex file as avrm8ledtest.hex)
*** Read the Fuse : <code>uisp -dprog=dapa --rd_fuses -dpart=ATmega8535</code>
<pre><nowiki>
Read the Fuse*** Erase Whole Chip : <code>uisp -dprogdlpt=dapa/dev/parport0 --rd_fuseserase -dprog=dapa -dpart=ATmega8535</code>
Erase*** WholeProgram Chip : <code>uisp -dlpt=/dev/parport0 --eraseupload if=avrm8ledtest.hex -dprog=dapa -v=3 --hash=32 -dpart=ATmega8535</code>
Program Chip : uisp -dlpt=/dev/parport0 --upload if=avrm8ledtest.hex -dprog=dapa -v=3 --hash=32 -dpart=ATmega8535
</nowiki></pre>
* if you buy a new chip, you cannot program this chip by the above serial programmer. You must have a avr parallel programmer to set the Fuse High Byte - SPIEN bit to logic LOW. Please take a look of [http://www.atmel.com/dyn/resources/prod_documents/doc2502.pdf page 236 of atmel datasheet 8535 as example]. Then
*References
**[http://www.linuxfocus.org/English/November2004/article352.shtml tell you how to start]
**[http://users.rcn.com/rneswold/avr/ References manual in between development]
**resources
***http://medo.fov.uni-mb.si/mapp/uTools/index.html
:[[User:Chungyan5|Chungyan5]] 12:13, 21 Jun 2005 (UTC)
 
== Documents for Development ==
*[http://users.rcn.com/rneswold/avr/ GNU Development Environment]
 
== External links ==
{{Wikibookspar||Atmel_AVR}}
 
**[http://users.rcn.com/rneswold/avr/ ReferencesGNU manualDevelopment in between developmentEnvironment]
**[http://www.linuxfocus.org/English/November2004/article352.shtml Programming the AVR microcontroller with GCC] by Guido Socher -- a very detailed introduction from the very beginning.
**[http://users.rcn.com/rneswold/avr/ A GNU Development Environment for the AVR Microcontroller] by Rich Neswold
***http://medo.fov.uni-mb.si/mapp/uTools/index.html ''Broken link ?''
 
*[http://www.atmel.com/products/avr/ Atmel's AVR product page]
Line 52 ⟶ 46:
*[http://www.pvv.org/~torhr/avrmon-stk200/ avrmon-stk200] &ndash; avr-[[GNU Debugger|gdb]] compatible [[Linux|GNU/Linux]]-based [[debugging|debug]] [[machine code monitor|monitor]] system for connecting to Atmel's "STK200 Starter Kit"
*[http://www.embeddedrelated.com/groups/avrclub/1.php AVR Discussion Group]
 
 
[[Category:Microcontrollers]]