AVR microcontrollers: Difference between revisions

Content deleted Content added
Chungyan5 (talk | contribs)
Development: - add programmer and fuse bit
Chungyan5 (talk | contribs)
Setup Tools For Development: - add programmer eg.
Line 26:
**using apt-get command to install them, typing by "apt-get install binutils-avr gcc-avr avr-libc uisp"
*[http://www.linuxfocus.org/English/November2004/article352.shtml#352lfindex8 prepare a simple avr serial programmer]
**examples to use the above programmer with uisp
<pre><nowiki>
uisp -dprog=dapa --rd_fuses -dpart=ATmega8535
uisp -dlpt=/dev/parport0 --erase -dprog=dapa -dpart=ATmega8535
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