Download Program At90s2313 With Arduino Microcontroller

admin

Several configurations can be done to download the program to your microcontroller, there are even bootloaders which allow you to communicate with the target microcontroller without any programmer, but that will not be discussed right now. We are taking the approach in which you receive a blank microcontroller, and then you have to program it the fastest and cheapest way.

The programmer

We choose the the Usbasp developed by Thomas Fischl, the reasons are:

-Cheap programmer, it can be found under $3 (http://www.ebay.com/itm/USBasp-USBISP-3-3V-5V-AVR-Programmer-USB-ATMEGA8-L-/140763404046?hash=item20c627170e)

Program

Atmel® microcontrollers (MCUs) deliver a rich blend of efficient integrated designs, proven technology, and groundbreaking innovation that is ideal for today's smart. Download Program At90s2313 With Arduino Software Examples. Intro: Burning the Bootloader on ATMega328 using Arduino UNO as ISP. Using Arduino to program at89s51. Ask Question 1 $ begingroup $ I want to program at89s52, and on. The AT89S51 is an 8051 architecture microcontroller, not an AVR architecture microcontroller like the Arduino and (as normally expected by) it's ecosystem of programmers.

-It is widely used by the community

-Supports all the ATmega and ATtiny (and some more) families

-It is Open hardware so you can even make your own if you have an extra Atmega8 and follow the schematics http://www.fischl.de/usbasp/

(The only problem is to download the first firmware to the Atmega8, which can be done with another programmer which you may borrow for the task, or using Ponyprog if you have a SERIAL port, more info in the “Setting up the hardware” section)

The microcontroller

There are a lot of Atmega devices out there, generally the nomenclature goes like this:

ATMEGA[number]

Where number is the size of the Flash memory (where you store the program) given in kilobytes, for example Atmega8 would have 8KB of memory; nevertheless there are some devices with a more complex nomenclature such as ATmega168PA, ATmega88, etc., these are variations of the ATmega16 and ATmega8 respectively.

You can buy the microcontroller alone but there are some fancy (and expensive) boards out there like Arduino (Arduino UNO, DUE, MEGA, NANO and others have an Atmega as their core), or cheaper ones (like the one in the picturo of this step) that have the ISP header so you can plug the programmer easily

(If you have an Arduino, I won´t recommend you to extract the microcontroller from the board, if you do, make shure to save and reload the Arduino´s firmware to make the board useful again)

In this set-up we are going to use an Atmega8 as it is one of the most common uC, and also a cheap one.

Active4 years, 3 months ago
$begingroup$

I want to program at89s52, and on the internet there are many tutorials on how it is usually done, but almost all of them use the RS232 output from the computer, which I don't have.

The only resource that actually implements it in another manner that I found is the usbasp page. This is something I would by default do, but I would like input from users who have experience programming the 8051 first.

1) Is it possible to implement device programming with an arduino? If so, is it feasible? I'm not entirely familiar with how exactly the SPI programming works, but it is something I am interest in learning. The idea is that I look at the datasheet, find out exactly what needs to be done, and use an SPI library for the arduino.

Microcontroller Programming Tutorial

2) If 1) is too impractical and/or unreliable, should I go ahead and proceed with the USBasp project? I've read somewhere that on newer version of windows, this process is unreliable. So, what are your experiences with USBasp, to those who have done something similar in the past?

3) Any other suggestions or recommendations to upload a program onto the chip?

triplebigtriplebig
7371 gold badge13 silver badges23 bronze badges

Arduino Microcontroller Projects

$endgroup$

2 Answers

$begingroup$

The AT89S51 is an 8051 architecture microcontroller, not an AVR architecture microcontroller like the Arduino and (as normally expected by) it's ecosystem of programmers.

Military times guide to military installations worldwide weather

However

  • The AT89S51 supports serial programming using an SPI interface (MISO,MOSI,SCK,Reset)
  • People claim to have used avrdude (and progasp172) to program an AT89S51 (ref)

If I am right, any Arduino running the ArduinoISP sketch should be usable, in conjunction with avrdude, to program an AT89S51.

Probably not very many people have tried this.

There are numerous inexpensive ISP programmers that are known to avrdude or which emulate a programmer known to avrdude. For example, I've used both an Arduino and a bus-pirate to program a bare ATtiny85 on a breadboard. An unrelated but useful description here

Pro

That leaves you with the job of generating a binary file for your target microcontroller.

RedGrittyBrickRedGrittyBrick
12.9k4 gold badges31 silver badges62 bronze badges
$endgroup$

Pic With Arduino Microcontroller

$begingroup$

Using an arduino to program AT89S52Posted: March 21, 2012 in Digital Electronics

Horacio BastaHoracio Basta

Arduino Microcontroller Board

$endgroup$

C Programming For Microcontrollers Pdf

Not the answer you're looking for? Browse other questions tagged arduinomicrocontrollerspi8051 or ask your own question.