How to develop for legacy AVRs using Arduino IDE?

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a bunch of 90S8515 along with some other legacy AVRs. In recent years I grew to love the Arduino development platform. I do not use a bootloader, but rather I program them directly. Still, the Arduino user interface always requires one to select a board, instead of allowing me to just select an MCU. That tells me that using Arduino IDE to develop for most AVRs that aren't officially included in some Arduino board, may be a bit of a challenge or even... impossible?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It seems a couple of people have got it right. Take a look at these two links. They seem almost identical but have a few minor differences -

 

How I got my old Classic Atmel AT90S8515 to work with Arduino IDE

How I got my old Classic Atmel AT90S8515 to work with Arduino IDE

Wayne

East London
South Africa

 

  • No, I am not an Electronics Engineer, just a 54 year old hobbyist/enthusiast
  • Yes, I am using Proteus to learn more about circuit design and electronics
  • No, I do not own a licensed copy of Proteus, I am evaluating it legitimately
  • No, I do not believe in software or intellectual property piracy or theft
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

WayneZA wrote:

It seems a couple of people have got it right. Take a look at these two links. They seem almost identical but have a few minor differences -

 

How I got my old Classic Atmel AT90S8515 to work with Arduino IDE

How I got my old Classic Atmel AT90S8515 to work with Arduino IDE

Many thanks! It looks like the forum post and thread are a superset of what he wrote in the blog, unless I'm missing something.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes, and sorry, welcome to the AVR Freaks forum! smiley

Wayne

East London
South Africa

 

  • No, I am not an Electronics Engineer, just a 54 year old hobbyist/enthusiast
  • Yes, I am using Proteus to learn more about circuit design and electronics
  • No, I do not own a licensed copy of Proteus, I am evaluating it legitimately
  • No, I do not believe in software or intellectual property piracy or theft
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You say you have some other legacy AVR's as well. You may want to look at MCUDude's GitHub repositories. He covers the following AVR's -

 

  • ATmega640, ATmega1280, ATmega2560
  • ATmega64, ATmega128, ATmega1281, ATmega2561
  • AT90CAN32, AT90CAN64, AT90CAN128
  • ATmega8535, ATmega16, ATmega32, ATmega164A/P, ATmega324A/P/PA/PB, ATmega644/P, ATmega1284/P
  • ATmega8515, ATmega162
  • ATmega8, ATmega48/P/PA/PB, ATmega88/P/PA/PB, ATmega168/P/PA/PB, ATmega328/P/PA/PB

 

 

MCUdude Core Files on GitHub

MCUdude libraries on GitHub

Wayne

East London
South Africa

 

  • No, I am not an Electronics Engineer, just a 54 year old hobbyist/enthusiast
  • Yes, I am using Proteus to learn more about circuit design and electronics
  • No, I do not own a licensed copy of Proteus, I am evaluating it legitimately
  • No, I do not believe in software or intellectual property piracy or theft
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Use MajorCore. It's written to work with ATmega8515 and ATmega162 and would require very little modification to with AT90S8515 I'm sure.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks again, sirs!

 

Just a brief note that my old AVRs are really old - none is an ATMega.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't think you can assume that Atmega8515 (supported in the "MajCore" for Arduino) "would require little modification". This application note dates from the time (it says "(c) 2003") that ATmega8515 replaced AT90S8515 and highlights all the way that it is different:

 

http://www.professordan.com/avr/...

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

old_fool wrote:
I grew to love the Arduino development platform.

So your the one! devil

 

And Welcome to AVRFreaks!

 

 

 

Jim

 

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

my old AVRs are really old - none is an ATMega.

 You're probably better off trying to sell those to someone who really "needs" them (ie has a production design that they're still trying to ship), and buying yourself some of those new-fangled Mega-0 and AVR-DB chips.

 

Depending on what part of "Arduino" you particularly like, you could bypass "the Core" and write whatever you want in main()

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also recommend not using 90S8515 in any new designs if you are using Arduino.  If you have several tubes of these chips, then I suggest selling them on eBay, as user westfw suggests above.  But, instead buy Arduino Nano clone boards for about $3-4 each: not bad for a 32K flash AVR with all the trimmings.  There is a much less learning curve with Nanos than with new AVR designs.

 

If you need the four 8-bit IO ports that the 40-pin AVRs supply and are using the 28-pin Mega328P that is in the Nano, then you can expand your number of IO ports with a I2C I/O port expander IC like the PCF8574P.