Sunday, November 2, 2008

SIMPLE AVR BURNER

AVR is one of type of microcontroller from atmel, AVR have many abbilities compare with 89s52 form 8051 family. for example 

1. AVR have output current bigger (up to 80 mA, I test with Ammeter short it directly to ground)
2. CPU RISC base, so many instruction can be done by one clock. the speed is depend on xtall that we use
3. Many feature. like PWM genarator, some of them have internal comparator, Analog to digital converter, 
4. and many program have avr library. avr is remomend to be programed in C langugae.

first to use AVR is how to make the burner / downloader.
burner is some kind connection / modul to download the machine code program that have built in pc. the machine code is generate by compiler. its compile from our main program in C or assembly. downloader tool to insert machine code to avr.

there are many may to burn avr. like paralel programing , and ISP (in system programing ,like we create right know). paralel programing faster than ISP but its need high voltage and need special tool. so many person like to make ISP. we can configure our AVR in our system.

ISP is burn avr use Serial Peripheral Interface protocol at the end of sytem(the system which directly entry the machine code one by one) but in front system (which transfer from computer) many way that can do. like use paralel port, serial, even USB.

below is DT600 burner. its simply just use paralel port and some of cable

Above is the schematic. i dont use the resistor. but i suggest u  use the resistor for MISO pin. because it can protect our computer from large current.

Below is the burner that i've made use breadboard.



you don not use external XTALL since avr have it. but you need to configure it first use FUSE bit. 

you can use pony prog program to transfer machine code from computer to AVR.  but some of compiler have extra feature to directly download after you compile, like codeVision.




No comments: