USBasp Compatible Codevision AVR


2,686

6

Electronics Component - PCB [Design, Printing, Inserting] - Electronic Programming

USB ASP is a device that is often used to upload programs into a micro-controller because it is easy to use and of course it is also cheap! USB ASP itself is compatible with some compiler, of course with different settings.

Here is the tutorial of how to setting USBasp to be compatible with Codevision AVR.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials You Need

You will need:

  1. WIN AVR
  2. Driver USBasp
  3. Codevision AVR
  4. File ".bat"
  5. USBasp
  6. Minimum System

Step 2: Installation

Install WIN AVR and Codevision AVR first, then create a project with Codevision AVR. The next step is to install ASP USB driver. Instalation USBasp driver as follows:

  1. Plug the USBasp into the computer, then the computer will detect a new device.
  2. Open device manager
  3. In the device manager will appear USBasp device whose driver is not installed, then right click and select Update Driver Software.
  4. A menu will appear, then select "Browse my computer ..."
  5. Find the location of the USBasp driver that has been downloaded in the link above.
  6. Then Install, wait until finished.

Step 3: Creation and Explanation .bat File

The creation of .bat file as follows:

  1. Open notepad.
  2. Type as follows (without quotes): "echo off avrdude -c usbasp -P USB -p m328 -U flash:w:lfArduAvr.hex pause"
  3. Save with the extension .bat
  4. Directory storage inside the EXE folder of the Codevision AVR project created as an example.

The explanation of .bat file content:

  1. "usbasp" device used is usb asp.
  2. "m328" type of microcontroller used.
  3. "lfArduAvr.hex" file name with HEX extension on the created project.

Step 4: Codevision AVR Setting: Project

First, open the created project.

Then, select "project" on the Codevision AVR menu tab and choose "Configure"

Step 5: Codevision AVR Setting: Configure

In the configure project view, select "After Build" on the menu tab.

Then, check "Program the Chip" and "Execute User's Program".

And, click the "Program Setting".

Step 6: Codevision AVR Setting: Program Setting

In the program settings, browse and grab the .bat file in "program directory and file name" and enter the EXE folder directory containing the .bat file in the "working directory".

And then, click OK.

Step 7: Codevision AVR Setting: Codevision AVR

Click "build all" on Codevision AVR or CTRL + F9.

And then, select Execute user's program.

Step 8: Codevision AVR Setting: Finish!

If it works then the display will appear as picture above. Ignore the error notification of "comport".

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions