5 ms·
From the name, I thought it would be a MediaTek product... The 8051 is a very unusual architecture by contemporary standards, but is found in a surprisingly la
by userbinator 10y ago
From the name, I thought it would be a MediaTek product...
The 8051 is a very unusual architecture by contemporary standards, but is found in a surprisingly large amount of products and by some statistics, outsells ARM by a wide margin.
- trothamel 10y agoHow relevant is it compared to, say, the 8-bit Atmel stuff, when it comes to new designs?
- bsder 10y agoIt's not relevant at all today. Use a 32-bit micro unless you've got a really good reason to do otherwise. And cost isn't one of those reasons anymore.
- zokier 10y agoAs a standalone microcontroller, I'd agree. But as an IP core integrated to some design it is still quite relevant.
- MrBuddyCasino 10y agoOr if you have low power requirements. The TI MSP430 really shines here.
- bsder 10y agoThe MSP430 really isn't that much lower power (if at all) than the Cortex M4 series nowadays.
- pkaye 10y agoThe 8051 was originally developed by Intel but there were many second sources. It has a Harvard architecture so separate code and data memory space and furthermore an external memory space. Also can do single bit operations which is useful for controlling IO pins. Although an 8-bit processor, the compilers (like Keil which is now owned by ARM) are quite good. Not a days if I was wanting a low end micro-controller I would go with an ARM Cortex-M as the 32-bit CPU just makes programming a lot easier. I recall the days I spent micro optimizing a 32-bit multiply or divide on an older 8-bit CPU.
- vardump 10y ago> Although an 8-bit processor, the compilers (like Keil which is now owned by ARM) are quite good. Quite good? Keil's compiler is horrible. It produces large (2x too big) slow (2-4x too slow) binaries.
- kbeckmann 10y agoWhich compiler would you recommend using instead?
- vardump 10y agoI don't think there's a competent 8051 C compiler.
- pkaye 10y agoCompared to what?
- vardump 10y agoCompared to handcoded assembler. To the level comparable to gcc -O3.
- pkaye 10y agoHandcoded assembly is slower to develop and it depending on the capabilities of the developer so there are tradeoffs. And is gcc available for an 8051?
- vardump 10y agoLike I said, I wish 8051 had some good compiler. Like gcc. No disagreement there that handcoded assembly is slower to develop! You do get code size below 50% and it runs twice as fast.
- rbanffy 10y agoIn the late 80's, I helped design a car on-board computer based on the 8052. PL/M was a fairly decent programming language.
- Taniwha 10y agoI've done a bunch of 8051 projects, if you have to choose between ARM and 8051 - choose ARM! 8051 cores are cheap but they have weird memory hierarchies - managing them results in giant code, unless you're willing to break into assembly way too often