Professional Documents
Culture Documents
Table of Contents
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Step 5: Automation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
http://www.instructables.com/id/Atmel-Studio-With-Usbasp-on-Atmega-8-Target/
Intro: Atmel Studio with usbasp on Atmega 8 target.
AVR micro controller series has gained lots of popularity since
Arduino boards and software is one of the most common for people who wants to learn about making use of micro controller by writing sketches (.ino files). Due to it's
ease of use API and hardware format, user can easily stack hardware shield on top of Arduino boards and write code sketches to do any operation on hardware hooked
up to the Arduino board. It opens up user to various kinds of boards, sensors and actuators which designed to be compatible with Arduino software. Atmega8 is being
used as an early Arduino boards (Arduino NG). And still being supported by latest Arduino software. For some user who wants to use the Atmega 8 power's will want to
try Atmel Studio 7. It's free development tools from Atmel, and designed for it's micro controllers. The code generated is much smaller compared to one generated by
arduino and no need to use bootloader for atmega 8 to save space. Some setting is needed in order to write code using atmega 8 with Atmel studio 7 such as hooking up
with usbasp on a breadboard and fuse settings.
Also uploaded the sample of breadboard wiring. I use zif socket so that i can easily change the microcontrollers easily. This zif socket is not necessary unless you want to
change micro controllers very often like I do.
You probably will want to use default fuse setting if you want to run with Atmel studio. As shown on the right side of datasheet. You might notice that all fuses are active
low. it means programmed = 0(LOW), or not programmed =1 (HIGH). so value 0xFF means all bits not programmed and 0x00 means all bit is programmed;
WARNING: Be careful if you program fuse, if you disable reset, or disable serial programming, or you set external clock but you don't have external clock
source connected, you cannot use the micro controller anymore unless you have hi voltage (12 volt) reset.
Fire up the avr dude and type this command to setup the fuse.
http://www.instructables.com/id/Atmel-Studio-With-Usbasp-on-Atmega-8-Target/
Step 3: Create project on you Atmel Studio 7
This one is the easy part assuming you already have Atmel Studio downloaded and installed.
http://www.instructables.com/id/Atmel-Studio-With-Usbasp-on-Atmega-8-Target/
Step 4: Code Blink Led, Comple and flash it to target.
1. Using the code attached, you can code copy paste main.c. and hit f7 (build solution).
3. using command prompt, go to your project file location that is out put window.
(Control Panel\System and Security\System click advance system setting and set path like on the screenshot)
and run:
File Downloads
a. command :
example: D:\arduino\avrdude-6.2-mingw32\avrdude.exe
b. arguments:
c. initial directory:
$(ProjectDir)Debug\
http://www.instructables.com/id/Atmel-Studio-With-Usbasp-on-Atmega-8-Target/
Related Instructables
Universal
How to program An advanced programmer for Firmware Arduino USB DIY Atmel
AVR approach to AVR's and S51 upgrade for MIDI Interface microcontroller
microcontrollers, Arduino & AVR plus ZIF socket USBASP clone - by Silvius development
cheap and easy programming by Fixing Error board by
! by armstk180 Setting USBASP
by Diego0101 SHARANYADAS Electrospark
ISP Clock by
GandaU
Advertisements
Comments
http://www.instructables.com/id/Atmel-Studio-With-Usbasp-on-Atmega-8-Target/