to your Atmega8 chip.
1. Code::Blocks for Arduio and AVR.
You could download it here: http://sourceforge.net/projects/arduinodev/
2. eXtreme Burner.
You could download here: http://extremeelectronics.co.in/softwar ... beta-test/
What you need:
1. ATMega8 microcontroller. [you could buy this at pettah or from Aptinex around 150/-Rs]
2. USBASP programmer. [I purchase this from Aptinex however ebay and also I heard there is a
place in pettah too].
3. Windows installed x86 computer with USB 1.0 port avaliable.
4. Some few components and a 5V power supply.
First you have to download the software.
Please note that you need to download modified version of the code::blocks called
code::blocks for ardino and avr. You could download code::blocks and avrgcc and
configure code::blocks to use avrgcc too,but it would be lots of configurations but
it will give you lots of knowledge. I do really encourage you to do that, but anyway
I will continue this tutorial using "Code::blocks for Ardino and AVR".
So let's begin.
So here is a video that guide you through downloading code::blocks and write your first
program to blink LED.
This is the source code of the firmware.
- Code: Select all
DDRB |= _BV(DDB0);
PORTB ^= _BV(PB0);
Circuit that you need to build.
And this is the working video.
I take the original idea from here:http://www.micahcarrick.com/tutorials/avr-microcontroller-tutorial/getting-started.html
Most of the credits should gone to him.
And also some credits should gone to 'Chanaka' , where I'm messed up with that crystal issue.
However sorry about the low quality of the video.
Hope you enjoy using codeblocks for AVR [I don't know about ardino].