BASCOM AVR Tutorial
BASCOM AVR is a compiler used for writing software to download on Atmel 8 bit microcontrollers. It is easy to learn and use and is very inexpensive. As you go through the tutorial, you can navigate back and forth with the toolbar on the left of your screen or with the back and forward buttons on the bottom of the page. At the end of the tutorial, there is a link to open aprintable version of this tutorial. If you have any suggestions on improving this or other tutorials, would like to see another added or even have one ready that you would like to add to the site, send the webmaster an email with the description and, if applicable, a copy of the tutorial you wish to submit. There is no fee for submitting a tutorial nor is there a fee paid to the submitter. This siteis to make available free information and is maintained through affiliate advertising.
BASCOM AVR is available for download from several locations. Two that I will mention are the MCS Electronics site, http://www.mcselec.com/download_avr.htm . Also, you will find the user manual available on those same pages. I performed this installation on a computer running a 2 Ghz Celeronprocessor with Windows XP as the operating system. Start by creating a folder on your desktop named 'bascom.' Download all six of the files (each labeled bcavrd 1.zip, bcavrd 2.zip, etc) into the bascom folder you created on your desktop. After all of the files have been successfully downloaded, unzip the files into the same folder. Open the unzipped folder bcavrd 1 and click the setup icon. You mayget a warning for the digital signature validation.
Figure 4.1 Click Run and proceed with the installation. The installation is just like installing any other software. You should allow the software to install in the default locations and settings it selects if possible. When the installation begins, it will prompt you to insert disk #2. If you downloaded and unzipped thefiles as suggested in this manual, all you need to do is backspace over the 1 in the file location, DESKTOP/Desktop/bascom/bcavrd_1 and make it DESKTOP/Desktop/bascom/bcavrd_2 as shown in figure 4.2.
Figure 4.2 You will be prompted to insert the remaining disks through disk 6. Simply perform the same action of typing the new number in the Source Pathname as you did for disk 2 for all of theremaining prompts, typing 3 for disk 3, 4 for disk 4, etc. After the software has been installed, it is a good idea to restart your computer. Most computers will not be adversely affected without a restart, but it is good practice to do so. When your computer is back up, go to start, all programs, BASCOM-AVR, and click on BASCOM-AVR. BASCOM will start up with an empty window.
When it is opened, click options then programmer to open the page for selecting the programmer you will use with your project. Again, we will proceed assuming we will be using the STK500 programming kit.
Figure 4.4 When you select your programmer and click OK, a warning dialog will be displayed informing you some of the settings in the options exceeds the selected chips capacities.Figure 4.5 The reason for this is no chip has been selected yet. As a result, all settings exceed the chip's capacities (since there are no capacities available). Just click OK and continue. At the top of the Options menu, click the Compiler tab to select a chip as shown in figure 4.6. If you will be using the same microcontroller in your version of our project, you should select them16def.dat file. If not, simply select your chip's .dat file.
Figure 4.6 After selecting your chip, you can choose to disable the simulator for our project. If enabled, the simulator will appear each time you compile your program and you will need to close it out each time before proceeding. It is a minor inconvenience if you are not using the simulator, as we will not during this project. If you...
Leer documento completo
Regístrate para leer el documento completo.