Trybotics Logo

USBasp Compatible Codevision AVR

DESCRIPTION

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.

Description:

You will need:

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

Description:

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.

Description:

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.

Description:

First, open the created project.

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

Description:

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".

Description:

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.

Description:

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

And then, select Execute user's program.

Description:

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


YOU MIGHT ALSO LIKE