Assembly Language

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

Hi    it's been awhile. I used to make my own PCBs and write and compile my progs in machine or assembly language for the 8052 and derivatives. so i bought a development board with an AT89S52. I downloaded and installed the Atmel Studio 7  , is there away to write and compile in Assembly Language Looks like only C. the DEV BOARD I have is the IL102 Insignia labs 

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

Studio does not work with the old AT89S52.  Not sure what will

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

Back up and tell us what is your ultimate goal?  Do you have to use the AT89S52?  I strongly doubt it.

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

kk6gm wrote:

Back up and tell us what is your ultimate goal?  Do you have to use the AT89S52?  I strongly doubt it.

I think he wants to go for something new, but wants to start at a familiar place so took Atmel studio (as the unknown new thing to learn) as it is from the processor manufacturer and hoped that it would work with his 8051 family chip that he then could code in a for him known language.

Just checked and the only assembler stuff available in Atmel studio is for the AVR 8 bit family, also starting a C project does not give any AT8 processors to choose from.

 

So you will either have to find another compiler and integrate that into studio, or get another board and processor to start working with.

 

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

What made you choose AT89 anyway? In the Atmel range the "real nice" 8 bit chips are the AVR8 range. In fact they are so nice this entire website was built to support them ;-)

 

One really nice implementation of (mainly) AVR chips is the so called "Arduino". While it's a "complete design system" with a lot of high level C++ software support the fact is that the most excellent boards can just as easily be programmed in pure Asm if you prefer. So I'd buy a $5 "Uno clone" and use with your copy of Atmel Studio 7. AS7 itself has two different AVR8 assemblers to choose from.

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

I don't believe that the AT82S52 is an AVR-based chip.  I think that it is a clone of the 40-pin Intel 8052 (with internal ROM) that Atmel made before adopting the AVR design.  In that case, this chip would use Intel 8051 type tools for development.

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

The AT82s52 is an MCS-51 (8051) architecture chip that is not supported by Atmel Studio.  It does support ISP programming using a protocol very similar to the ATmega's ISP programming (with an inverted RESET, IIRC.)  I thought that Atmel at one time had a (very old) 8051 development environment for downloading (hidden off in some corner), but I can't find it at the Microchip site.

 

The industry standard 8051 IDE is from Keil, and it costs lots of money.

 

There are assorted open-source/free tools, including the SDCC C Compiler.  Most seem to be CLI assemblers and compilers to be used with Make, rather than modern "IDEs"

 

I think Silabs has an IDE that supports 8051 cpus (Simplicity Studio.)  If you want to play with a more modern 8051, I think I'd recommend one of their development boards.

(If you're doing this for personal use, you could also consider blatantly ignoring SiLab's (probable) licensing terms, and figuring out how to get their IDE to generate code for Atmel 8051 chips.  An 89s52 doesn't have a whole lot of complexity that would make chip-specific support important.  Especially in assembly language.)

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

westfw wrote:
I think Silabs has an IDE that supports 8051 cpus (Simplicity Studio.)
IAR for Texas Instruments 8051 inside some of the wireless SoC (sub-GHz, Bluetooth)

CC-DEBUGGER Debugger and Programmer for RF System-on-Chips | TI.com

https://www.iar.com/device-search/#!?devices_architecture=8051&devices_vendor=&tab=devices

 

SEGGER J-Link has 8051 though currently for Silicon Labs EFM8; has instructions on how to extend the flash loader.

SEGGER J-Link is a GDB server; GDB is in a relatively few editors as a plug-in and in some IDE as extensions.

SEGGER - Software Development Tools for Embedded Systems

 

edit :

CLion has a GDB client and is relatively inexpensive.

Embedded Development - Features | CLion

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Aug 14, 2019 - 02:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
$ apt-cache search 8051
as31 - Intel 8031/8051 assembler
cc1111 - C Compiler for TI/Chipcon 8051-based RF SOCs
cycfx2prog - Cypress EZ-USB FX2 (LP) programmer
dis51 - Disassembler for 8051 code in Intel Hex format
emu8051 - Emulator and simulator for 8051 microcontrollers
mcu8051ide - Graphical Integrated Development Environment for 8051
s51dude - In-System Programmer for 8051 MCUs using usbtiny

 

https://www.quora.com/How-can-I-start-to-program-an-AT89s51-AT89s52-microcontroller

https://www.pjrc.com/tech/8051/

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

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

Thanks for all of your replies i found MIDE-51  which seems to be about the last IDE that will run in windows for the 8052 and derivatives. just about all the software apps i have are from the 90's and most run in DOS OR WIN95 for the 8051/52.

JoeyMorin   book marked both your links to read later

gchapman  thanks

westfw    i have a dev board and it supports ISP, will just program the 89s52 with my TL866 for the time being

Simonetta    exactly

dawson    someday will join the 21st century of micros, for now i am going to play with the INTEL MCS-51 based chips.....and besides you would not believe the tubes of through hole chips i have, also a lot of free sample through hole and surface mount from Cypress

meslomp    the 8051 is like an old friend, i made my own SBC's designed a UV light box for exposing the circuit boards, a plexi etching tank

kk6gm   to have fun

jgmdesign thanks

Last Edited: Thu. Aug 8, 2019 - 01:54 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


OutThere wrote:

Thanks for all of your replies i found MIDE-51  which seems to be about the last IDE that will run in windows for the 8052 and derivatives. just about all the software apps i have are from the 90's and most run in DOS OR WIN95 for the 8051/52.

JoeyMorin   book marked both your links to read later

gchapman  thanks

westfw    i have a dev board and it supports ISP, will just program the 89s52 with my TL866 for the time being

Simonetta    exactly

dawson    someday will join the 21st century of micros, for now i am going to play with the INTEL MCS-51 based chips.....and besides you would not believe the tubes of through hole chips i have, also a lot of free sample through hole and surface mount from Cypress

meslomp    the 8051 is like an old friend, i made my own SBC's designed a UV light box for exposing the circuit boards, a plexi etching tank

kk6gm   to have fun

jgmdesign thanks

 

Dear OutThere,

I also have a bunch of AT89Sxxxx chips, mostly the 8252 that I used in a project decades ago.

I just have them and other 8051 family derivatives, it doesn't mean I would use them anymore.

It is the same as having a bunch of rock pebbles in middle of your tomatoes plantation in the backyard, the fact that you have them, you don't have to eat rocks, right?

 

I understand plenty.  I still have some chips 8008, but it is much more as remorse to trash them, than anything else.

Sometimes I get old capacitors from the box and use them, and in my mind flow some words like "okay, you waited 14 years in the dark, to be used, now it is your time".

It is okay to talk to old capacitors and microcontrollers, you are just human, but if the capacitor answers back, seek medical help immediately.  ;)

 

AVRs, mostly the AtTiny are very cheap right now.

Go for the most popular in the market, millions all over the place, AVR AtMega328P

You can buy a working small board, fully assembled, for less than $3 at eBay.

 

Below an example, I have nothing to do with the item on eBay.

 

https://www.ebay.com/itm/Arduino-Pro-Mini-Board-Free-with-Headers-ATMEGA328P-16MHz-5V-ATMEGA328-Mini-Pro/223583377607

https://www.ebay.com/itm/MINI-USB-Nano-V3-0-ATmega328P-CH340G-5V-16M-Micro-controller-board-for-Arduino/381374550571

 

 

 

Wagner Lipnharski
Orlando Florida USA

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

wagnerlip wrote:
Sometimes I get old capacitors from the box and use them, and in my mind flow some words like "okay, you waited 14 years in the dark, to be used, now it is your time".

I feel the same about 80 year old vacuum tubes.  Which lucky one gets to be brought back to life today?!

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

I have a stash of old power resistors from long ago (like 30 years).....sometimes I use one & think the same thing!   They don't seem to have degraded.   Around 1976 I bought a huge bunch of wire from Olson Electronics...I still have maybe 150 feet hanging around, along with thousands of feet of new wire. 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

Why don't you folks take your x51 reminisces to the Old Chip's Home? -- certainly it ain't this AVR site.

 

[lol -- this isn't the first time...the usual response was "but the x51 sites aren't as active as this one, and I can get answers here".]

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.