User:Sandip Pune

From Fab Lab Wiki - by NMÍ Kvikan
Revision as of 20:24, 15 January 2010 by Sandip Pune (Talk | contribs)

Jump to: navigation, search
  1. how to Download the programme file for hello world circuits
  2. There are three steps need to follow to complete the task
  3. 1 write code for assembly if you are writing new codes or use assembly code available for hello circuit.
  4. 2 compile assembly code to hex code using "gvrasm"
  5. 3 download the hex AVR using "avrdude"

# Step1

  1. if working on a linux/Ubuntu, go to the terminal window
  2. to search the assembly file in the PC, type "which_ file".
  3. then change to the directory where the assembly file is by using command "cd name of directory"
  4. type "Ls" to see list of file.there asm file will appers.

# Step 2

  1. in the terminal window type "gavrasm file.MTA.asm, hit enter
  2. assembly file will convert to hex file and this file is ready to send to the micro controller of circuit.

#Step3

  1. download "avrdude in-circuit programmer" from URL http://fab.cba.mit.edu/about/fab/
  2. avrdude programmer for different Tyne microcontroller are
  3. tiny45 load hex file, bsd cable: avrdude -p t45 -c bsd -U flash:w:file.hex
  4. tiny45 load hex file, dasa cable: avrdude -p t45 -P /dev/ttyUSB0 -c dasa -U flash:w:file.hex
  5. tiny45 load hex file, dragon: avrdude -p t45 -P usb -c dragon_isp -U flash:w:file.hex
  6. tiny44 load hex file: avrdude -p t44 -c bsd -U flash:w:file.hex
  7. tiny44 use 20 MHz xtal: avrdude -p t44 -c bsd -U lfuse:w:0x7E:m
  8. mega88 load hex file: avrdude -p m88 -c bsd -U flash:w:file.hex
  9. mega88 use 20 MHz xtal: avrdude -p m88 -c bsd -U lfuse:w:0x76:m
  10. mega644 load hex file: avrdude -p m644 -c bsd -U flash:w:file.hex
  11. mega644 use 20 MHz xtal: avrdude -p m644 -c bsd -U lfuse:w:0x76:m
  12. 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
  13. 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
  14. connect circuit serial port to computer and power supply to circuit
  15. after doing this hit enter in the terminal window the message appears as shown in "