Go Down

Topic: Configuring Arduino ISP sketch to program Atmel 8051 microcontrollers (Read 2187 times) previous topic - next topic

Sandhan

Hello! I have a question. How can we configure the Arduino ISP sketch to be able to program atmel 8051 family microcontrollers?

john1993

lol. if by "configure" you mean rewrite the program, then one starts by reading the documentation for 8051 flashing algorithm. then create arduino code to implement this. arduino isp sketch is a starting point but im guessing only 5%-10% of that code can be reused.

JoeN

If by configure, on the other hand, you mean to actually use the Arduino IDE as a development environment for 8051s, you can forget it.  8051 is a different architecture than AVR and Arduino only supports AVR.

I can tell you from experience, you can use this compiler:

http://en.wikipedia.org/wiki/MCU_8051_IDE

You will need a ROM programmer to upload the result binary to it.  It doesn't use an a debugger/emulator like AVRISP or AVR JTAGICE.

Have fun being an 8051 hobbyist.

A board I made out of a similar Atmel 8051 chip using the compiler above, programmed using a ChipMax programmer:


I will never ask you to do anything that I wouldn't do myself.

westfw

Quote
program atmel 8051 family microcontrollers?

WHICH Atmel 8051 microcontrollers?   Some of them support an ISP protocol very similar to the AVRs, and should (theoretically) be programmable using something similar to the ArduinoISP sketch (but NOT without changes.)  Other 8051s are only programmable in a parallel mode that requires connecting up about 24 pins...

KamalSonani

check this out
http://www.instructables.com/id/ARDUINO-AS-A-8051-PROGRAMMER/

PeterVH

For ISP capable devices (at89s...): ArduinoISP can program them with only one change: the ability to reverse the polarity of the target reset pin.

This question is posted every now and then in this forum, last time I actually tried it out and made it work with an at89s52. I posted results here:http://forum.arduino.cc/index.php?topic=72919.msg2093035#msg2093035

This works without further changes because the avrdude-at89s52.conf describes the part's flash as non paged and only specifies the plain read and write commands.(writepage must not be in there). In this case, avrdude programs the flash byte per byte using the "universal" stk500v1 commands. It is slow but it works very well.

Go Up