***USBasp AVR PROGRAMMER v2011***
Top View
VIDEO:
PROJECT DETAILS:
M.FAIZAN MAZHAR
Bsc (APCOMS) Rwp
Friday-2-Sep-2016
8:00 pm
USBasp CIRCUIT DIAGRAM:
(Click to Enlarge)
REFERENCE::
www.fischl.de/usbasp/
USBasp programmer is very easy to build , it consist of avr atmega8 Microcontroller , and some passive components.
PROTEUS CIRCUIT:
(Click to Enlarge)
PROTEUS LAYOUT:
PROTEUS 3D:
BOTTOM VIEW:
DESCRIPTIONS:
After making Pcb board u need to burn hex file in it & you would need another programmer for this purpose , it was a problem for me thats why i bought a USBISP programmer first but if u want to make i can burn hex file for you free of cost . All components are available on College road Rawalpindi.
FIRST PROGRAM:
I am Using MICRO-c PRO for avr Software v6.1.1 .
//************************************************
void main() {
DDRB = 0xFF; //all ports as output
DDRC = 0xFF;
DDRD = 0xFF;
DDRA = 0xFF;
while(1)
{
PORTA = 0xFF; //turn on all ports
PORTB = 0xFF;
PORTC = 0xFF;
PORTD = 0xFF;
Delay_ms( 500); // give a delay wait for 500 milli seconds
PORTA = 0x00; //turn on port
PORTB = 0x00;
PORTC = 0x00;
PORTD = 0x00;
Delay_ms( 500); // again Sabrr
}
}
//********************************************************
Build the program and you will get hex file.
PROGISP:
First of all select your Microcontroller & configure Fusebits I'll discuss later, after that Load flash and select hex file now command>Write flash and yo are done.
CRYSTAL:
The Little silver colour thing is Crystal which provide Clock with which microcontroller works .
AVR has both internal and external clocks , internal is buildin and is handy to use ,in this case no external crystal is required but it is limited to max 8Mhz but what we do if more than that is required Yes then we'll go for external Crystal , to use buildin Crystal click on default and write it will activate internal 1MHz crystal/Oscillator For internal 8Mhz go to website:
http://www.engbedded.com/fusecalc/
Select your Microcontroller
& from dropdown menu select Int .Rc Oscillator 8Mhz
Now Scroll down & Copy L-fuse and H-fuse values and paste them in PROGisp AS low value & high Value fuse settings & click write.
If you want to use External 16Mhz crystal or any other Value External Crystal then Scroll down first dropdown menu and select last option.
(Click to Enlarge)
DOWNLOADS:
RAR Package Contains :
1)ProgISP 1.72 Sotware
2)USBasp Programmer Orignal Files & Firmware .hex
3)MY Proteus Project Files
4) LED Blinking FILES + hex file
THANKYOU:
If You find any Problem Feel free to contact me Move to CONTACT US TAB, Thank you.
0 Reviews:
Write A Review