3 ms·
Do 8051/8031 assembly like its 1984
- boznz 11mo agoA shameless trip down memory lane after re-discovering my first Turbo Pascal program
- addaon 11mo agoOr 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.
- snvzz 11mo ago8051 rapidly being replaced by RISC-V now.
- addaon 11mo agoCan 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.
- hogehoge51 11mo agoI 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.
- snvzz 11mo agorv32ec 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.
- hogehoge51 11mo agoIt can be hidden away in SoC IP blocks, like DisplayPort blocks, too.
- theamk 11mo ago8051 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.
- iberator 11mo agoWhy not? I wrote a 6502 assembler a few months ago - despite being born decades too late It's fun
- timonoko 11mo agoNothing 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
- andrewstuart 11mo agoI was working on 8051 today. It’s still alive and kicking.
- iberator 11mo agoHow does it compare to 6502, 6508, 68000 and Z80? Is it easy to use? Or advanced-ish? For hobbysts
- chinabot 10mo agoIf you work in C and are happy with the standard libraries and don't want to go too deep into the hardware then most of the 8-bit micros are pretty similar. During COVID and the component shortages I had to do a bit of swapping around, luckily it was all GPIO, I2C and UART stuff so nothing too taxing.