By Jon Wilder
As I browse through many embedded electronics forums, I continue to see people making statements referencing Intel’s 8051 line of microcontrollers and how they are “obsolete”. However, nothing could be further from the truth. While Intel ceased production of theMCS-51family in 2007, there are an abundance of manufacturers still making 8051-compliant microcontrollers under intellectual property license from Intel.
Getting Better with Age
Take for instanceAtmel’s AT89Smicrocontroller series. These are not only 8051-compliant, they also come with many enhancements. While the original 8051 maxed out at an external clock speed of 12MHz, variants such as theAT89S8253can run up to a 24MHz crystal and also have a x2 clock option, which effectively runs the instruction clock at 1/6th the crystal speed (versus the original 1/12th Fosc spec).
While this only amounts to a 4MHz instruction clock — which may seem slow in comparison to modern micros such as aPIC18F4550that can run a 12MHz instruction clock — the MCS-51 family’s CISC architecture allows for a larger instruction set than many modern RISC micros. This means there are some operations that an 8051 can do with one instruction what it would take a routine of several instructions for a PIC to accomplish.
For instance, an 8051 has the cjne instruction, which compares two values and executes a jump if they are not equal. For a PIC 16F to do that, you would require three instructions to load the two values, subtract or XOR them, then test the zero bit and jump if not set. So, theoretically, a PIC running a 4MHz instruction clock would take roughly the same amount of time as an 8051 running a 1MHz instruction clock to do an operation equivalent of the 8051’s cjne instruction.
Out in Front of the Modern Micro
Where the MCS-51 wins out against modern micros once again is its external, front-side bus. This allows the 8051 to run programs stored in an external parallel EPROM, thereby making it easy to change firmware by swapping EPROMs. It also offers the option of using a larger program ROM than is offered on chip (up to 64KB). And, it addresses external parallel RAM (also up to 64KB) making the system memory expandable. While parallel memory may seem outdated with the availability of serial EEPROM, a parallel interface is much faster than serial.
The external memory bus isn’t just limited to memory, either. Through the use of hardware buffers and a clever hardware gating scheme, we can also create a topology of addressable I/O. This allows us to interface other hardware such as LCD/LED displays and switch arrays to the memory bus and treat them as external memory via the MOVX instruction. The bus makes for an easily expandable system with minimal code changes.
Furthermore, some newer 8051 variants even offer symmetrical source/sink ratings on their I/O pins, such as Atmel’s AT89LP52.
Tried — and True to the Core
While I’ve touched on the basics, there are many other manufacturers offering DSP chips with an 8051 core in current production and the enhancement of the 8051 seems to still be in full swing. They are a super-easy chip to learn and they’ve stood the test of time over the decades. While other microcontrollers do seem more updated by comparison, the age old addage “If it ain’t broke, don’t fix it” seems to be keeping the MCS-51 family alive and well.
In short…don’t expect the MCS-51 family to disappear anytime soon…at least not in our lifetime.
About the Author
乔恩·怀尔德是一个自由电子工程师electronics enthusiast for over 20 years. He spent four years in the US Navy as an aviation electronics technician. Jon has also been playing the guitar since age 13 and started integrating electronics and music from age 15. Jon built his first vacuum tube amp at age 17. “Musical electronics”, says Jon, is his love and passion.
Jonis also a frequent contributor and passionate member ofElectro-Tech-Online, an electrical engineering membership community. OnElectro-Tech-Online, you can ask questions and get answers from your fellow engineers on everything from microcontrollers, renewable energy, and automotive electronics, to circuit simulation and design. Additionally, there are MCU-specific forums for8051/8951,AVR,ARM,Arduino,Oshonsoft Project, as well as aCode Repositorywhere members share snippets of code.
Follow Jon on Twitter at@PICmcuguy.
Related Resources:
TheElectro-Tech-Onlinecommunity hosts anentire forum devoted to the 8051/8951 single-chip microcontroller.这是一个伟大的地方问questions, find answers, and share your experience and knowledge around Intel’s far-from-obsolete MCU.
There is also a five-part “Basic 8051″ tutorial written by ETO member and Super ModeratorIan Rogersthat covers the following:
- ASM and C code on the 8051
- Continuing the ASM and C on the 51 derivatives
- Basic motor control using ASM and C
- LCD in ASM and C
- Serial communication in ASM and C
The postIntel’s MCS-51 Microcontroller Family – It’s Here to Stayappeared first onMicro Controller Tips.
Filed Under:Electronics • electrical,Microprocessors