Close

Using BASCOM-Avr

jperez208jperez208 wrote 01/23/2022 at 20:07 • 2 min read • Like

Getting Statrted...

Before we can start programming any microcontroller, we need to set up a few things first.  In this lesson, I'll be using a Atmega88 and a USBasp programmer.  The same basic principles can be used with most microcontrollers using an SPI ( Serial Peripheral Interface).  

First we need to obtain a programmer.  A programmer is a stand alone board that acts as a buffer between the computer your writing your code on and the chip you wish to program.  Theres more to it than that, but for right now to get started, you need a programmer.  I bought this one from amazon and it works pretty well.  Just make sure you follow the instructions listed to install a driver.  

https://www.amazon.com/HiLetgo-ATMEGA8-Programmer-USBasp-Cable/dp/B00AX4WQ00

After that you'll need an actually program to write your code in.  This can be as simple as using notepad or another text editor and a compiler.  This can be a little complicated to use and set up but fortunately there are many software programs that wrap all of this up into a nice package.  Since we are going to be using the language BASIC,  I am going to be using BASCOM-AVR. 

 You can download it here : https://www.mcselec.com/index.php?option=com_docman&task=cat_view&gid=99&Itemid=54 

Scroll down and find the BASCOM-AVR demo version and download that.  For most purposes, the demo version will cover most everything you need.  

You should have everything you need to get started now. (provided you already have a breadboard, wires, LEDs, resistors etc.)  Lets get to wiring!

Like

Discussions