User:Sandip Pune: Difference between revisions
Jump to navigation
Jump to search
Sandip Pune (talk | contribs) No edit summary |
Sandip Pune (talk | contribs) No edit summary |
||
Line 27: | Line 27: | ||
#in the terminal window type, avrdude -p t45 -c bsd -U flash:w:file.hex eg. avrdude -p t45 -c bsd -U flash:w:hello.RGB.45.MTA.hex | #in the terminal window type, avrdude -p t45 -c bsd -U flash:w:file.hex eg. avrdude -p t45 -c bsd -U flash:w:hello.RGB.45.MTA.hex | ||
#connect circuit serial port to computer and power supply to circuit | #connect circuit serial port to computer and power supply to circuit | ||
#after doing this hit enter in the terminal window the message appears as shown in " | #after doing this hit enter in the terminal window the message appears as shown in [["Image:AVRDUDE.png]] | ||
#circuit is ready with programme. | |||
#if you get the message as shown in |
Revision as of 20:29, 15 January 2010
- how to Download the programme file for hello world circuits
- There are three steps need to follow to complete the task
- 1 write code for assembly if you are writing new codes or use assembly code available for hello circuit.
- 2 compile assembly code to hex code using "gvrasm"
- 3 download the hex AVR using "avrdude"
# Step1
- if working on a linux/Ubuntu, go to the terminal window
- to search the assembly file in the PC, type "which_ file".
- then change to the directory where the assembly file is by using command "cd name of directory"
- type "Ls" to see list of file.there asm file will appers.
# Step 2
- in the terminal window type "gavrasm file.MTA.asm, hit enter
- assembly file will convert to hex file and this file is ready to send to the micro controller of circuit.
#Step3
- download "avrdude in-circuit programmer" from URL http://fab.cba.mit.edu/about/fab/
- avrdude programmer for different Tyne microcontroller are
- tiny45 load hex file, bsd cable: avrdude -p t45 -c bsd -U flash:w:file.hex
- tiny45 load hex file, dasa cable: avrdude -p t45 -P /dev/ttyUSB0 -c dasa -U flash:w:file.hex
- tiny45 load hex file, dragon: avrdude -p t45 -P usb -c dragon_isp -U flash:w:file.hex
- tiny44 load hex file: avrdude -p t44 -c bsd -U flash:w:file.hex
- tiny44 use 20 MHz xtal: avrdude -p t44 -c bsd -U lfuse:w:0x7E:m
- mega88 load hex file: avrdude -p m88 -c bsd -U flash:w:file.hex
- mega88 use 20 MHz xtal: avrdude -p m88 -c bsd -U lfuse:w:0x76:m
- mega644 load hex file: avrdude -p m644 -c bsd -U flash:w:file.hex
- mega644 use 20 MHz xtal: avrdude -p m644 -c bsd -U lfuse:w:0x76:m
- if you are using tiny 45 microcontroller with serial port and ICP cable then select avrdude -p t45 -c bsd -U flash:w:file.hex
- in the terminal window type, avrdude -p t45 -c bsd -U flash:w:file.hex eg. avrdude -p t45 -c bsd -U flash:w:hello.RGB.45.MTA.hex
- connect circuit serial port to computer and power supply to circuit
- after doing this hit enter in the terminal window the message appears as shown in "Image:AVRDUDE.png
- circuit is ready with programme.
- if you get the message as shown in