Do 8051/8031 assembly like its 1984

Posted by boznz 1 day ago

Counter17Comment12OpenOriginal

Comments

Comment by addaon 1 day ago

Or like it's 2025. Plenty of current-production parts using an 8051 core as either their main sequencer, or as a low power core with bigger options on the main power rail.

Comment by theamk 1 day ago

8051 is cool, but no one is going to be writing their own homebrew assembler for them, there are plenty of FOSS ones.

And even assembly itself is going away, sdcc is a perfectly good compiler which is sufficient for a lot of 8051 applications.

Comment by iberator 16 hours ago

Why not? I wrote a 6502 assembler a few months ago - despite being born decades too late It's fun

Comment by hogehoge51 1 day ago

It can be hidden away in SoC IP blocks, like DisplayPort blocks, too.

Comment by snvzz 1 day ago

8051 rapidly being replaced by RISC-V now.

Comment by addaon 1 day ago

Can you give an example? I see RISC-V being used to replace custom 16 and 32 bit cores, and M0-class ARM cores, in the 10k+ gate range, but haven't really seen a migration in the 8 bit space.

Comment by hogehoge51 1 day ago

I have personally ported a usb c usbpd stack from 8051 to cortex m0 to rv32ec. I can’t talk for gate count, it for code size the biggest factor was the compiler, with ARMCC giving the smallest code. As the rom was larger than the core, that was a bigger factor in gate count.

Comment by snvzz 22 hours ago

rv32ec is indeed less dense than thumb2.

This is of course not the case anymore with the newer bitmanip and code size extensions, but it holds true for the older, crude rv32ec.

Comment by andrewstuart 1 day ago

I was working on 8051 today.

It’s still alive and kicking.

Comment by iberator 16 hours ago

How does it compare to 6502, 6508, 68000 and Z80?

Is it easy to use? Or advanced-ish? For hobbysts

Comment by boznz 1 day ago

A shameless trip down memory lane after re-discovering my first Turbo Pascal program

Comment by timonoko 1 day ago

Nothing 1984 about it.

Nuvoton N76E003AT20:

N76E003 – a 1T-8051 based series MCU, offers 18 KB Flash ROM, configurable Data Flash and 1 KB SRAM. It supports wide operating voltage of 2.4V to 5.5V, temperature range of -40℃ to 105℃, and high noise immunity of 7KV ESD and 4KV EFT.

$0.30 Add to the cart