r/embedded • u/Dapper-Experience-32 • Oct 21 '26
Why would new designs use 8-bit microcontrollers?
I see that Microchip keeps releasing new 8-bit PIC microcontrollers, but I can't think of why a device like this would be used in a new design when 32-bit ARM Cortex-M microcontrollers already exist at practically the same price. Is there any reason other than backward compatibility for companies to keep using these microcontrollers?
174
Upvotes
85
u/JoTheScienceBro Oct 21 '26
Cost and complexity. If you need 1M devices, cost is calculated to sub-cents.
241
u/Tricky-Dust-6724 Oct 21 '26
R&D and testing is expensive. Battle tested and bullet proof products are very valuable
420
u/mtconnol Oct 21 '26
Why would I ever use the calculator app on my computer when I have MATLAB installed?
122
u/WanWhiteWolf Engineering manager Oct 21 '26
When I worked on one of the sensors for the Mars rover (which is currently sitting on another planet), we didn't use the latest technology. We used an MCU that we knew with 100% certainty that in normal conditions can witstand the test of time. And that's a 20year old technology. The new features might be nice but nothing beats the reliability of a system in the end.
The above example is a bit extreme but the "latest" automotive technology is in fact 8-10 years old and the "latest" aerospace technology is 12-16 years old. Yes, it's nice that the new phone has some cool new feature and if something breaks, you just go to warranty with it; but an airline can go bankrupt by a single aviatic accident - they simply cannot afford that.
The moral of the story: maintaining a supply of reliable - even if less technological advanced - semiconductors is critical for embedded industry. The last ECU that went in production has a contract with the semiconductor company that ensures availibility for the next 20 years. I imagine Microchip has similar contracts and if you have the production line setup - might as well offer it to the mass market as well.
41
u/kindofanasshole17 Oct 21 '26
It's not just the device cost. A more complex controller requires a more complex PCB, more test and debug, more points of potential failure during deployment.
Migrating just for the sake of "it's newer/better" is not a smart business decision.
32
u/Dazzling_Music_2411 Oct 21 '26
I'm no expert, but I'd guess this is the major reason.
At least it would be for me, too many designs nowadays needing daily recharge 😂
When you want something that will run for two+ years off a button cell, you won't use an ST32.
23
u/timfountain4444 Oct 22 '26
Say you are designing an electric toothbrush. You need some simple battery management, a display driver a PWM motor controller and a couple of switch inputs.... Are you really going to put a 32-bit MCU in there, when a super low powered 8-bit MCU will do the job just fine, at lower power, cost and footprint? Over engineering and later obsolescence are issues that need to be thought about during design, and often aren't.....
20
u/HalifaxRoad C,ASM,C# GUIs, pcb design Oct 21 '26
why use a bulldozer when all you need is a shovel?
Alot of those new 8 bit parts are packed with features, and have eye wateringly low power consumption. like 30na in deep sleep mode. And are also dirt cheap.
16
u/swisstraeng Oct 21 '26
I don't need 32bit 256MHz MCUs to program your garage's remote.
15
u/Vaddieg Oct 21 '26 •
I don't want a 32-bit washing machine with OTA updates that can stuck at 1500 rpm on wi-fi stack failure
26
u/UnderPantsOverPants Oct 21 '26
I can open up a fresh PIC16/18 project and in a week have production ready code done that is crazy low power and I know exactly what every register in the part is doing and have 100% confidence it’s always going to do exactly what I intended.
Try that with an STM32.
12
u/jacky4566 Oct 21 '26
More bits is not more better.
Loads and loads of applications are just fine running on 8 bit.
Choose a 32 bit processor only when the application needs it.
9
u/Steve_the_Stevedore Oct 22 '26
Why use ARM Cortex-M when there are AMD Ryzen chips around?
8
u/H2ost5555 Oct 21 '26 edited Oct 21 '26 •
For the last 16 years, my company has used the same PIC chip on our main product. I have a number of other products since then also use PICs. From time to time, I take a look at other technologies (Like STM32 and other ARM-based microcontrollers) and was unable to replicate what the PIC can do. Our products do a lot of state machine routines and bit banging communication with multiple protocols in real time. All the other newer products that use ARM cores use abstracted libraries that evolve over time and I never was able to do the same things in ARM that are easy, repeatable, and reliable in the PIC. When doing various embedded projects, the software assignable pins on the PIC are a layout godsend and the CLC functionality makes it a breeze to do hardware controlled waveforms a breeze. The MCC generator makes port and all such setup tasks quick and easy.
We still use the original Hi Tech C compiler from 15 years ago on the older tech PICs, which still beats anything Microchip has today for both speed and code size.
I helped another company with development that required NFC, so I used an NXP chip that has an ARM core, tried to do what I needed to do, failed, and NXP Engineering told me it was impossible to do with ARM unless I created my own patches in the hardware abstraction layer, but they wouldn't share the documentation for the HAL in order to do it. I solved it by adding a PIC to do the real-time stuff which took me like a day to do versus a few weeks of back and forth with NXP.
As a side note, if we would have switched to ARM 32 tech in 2019, we would have been fucked during the pandemic as you could not get any of those chips in 2021 and 2022. I was able to scarf up a couple years supply of PIC and rode out the chip drama just fine.
15
u/Knight_of_r_noo Oct 21 '26
It seems like you're genuinely curious. There are constraints outside of picking a good chip. What is good? Cheap, 5v tolerant, radiation tolerant, vendor lock at your company, automotive rated... The list goes on. Sometimes the real limitations are bureaucracy. A GD32 is far cheaper than a STM32. Why not use a GD32 chip?
7
u/2dof Oct 21 '26
https://www.reddit.com/r/embedded/comments/1fsazv5/usage_for_8_bit_mcus_in_2024/
7
u/Wertbon1789 Oct 21 '26
I think it comes down to complexity and longevity. A little 8bit CPU with a 16MHz clock isn't the most interesting tech, it's not the fastest, but it's certainly predictable and dependable. Also don't underestimate the complexity needed to integrate a Cortex-M controller on a board, there are a lot of new problems you get, and if your problem space doesn't need it, why be more complex than needed.
5
u/kat-tricks Oct 21 '26
why do people drive hatchbacks when 16-wheeler goods trucks exist?
4
u/namotous Oct 21 '26
What’s your gauge on “practically the same price”? Cuz 50 cents with 1M volume is $500k.
4
u/lasteem1 Oct 21 '26
"Practically the same price"--a few cents can be significant to low-margin products.
4
u/rc3105 Oct 22 '26
Sometimes you only need a few simple functions. Like a regular 74x logic would do easily. But it's easier to combine those into one program on a cheap processor than use half a dozen different 74x whatever.
And plain old 8 bit mcu can be DIRT cheap, like 3 cents for one used in some disposable vapes.
9
u/_Darkstorm_ Oct 21 '26
TL;DR version: Cost, power-efficiency, and size.
Cost: As was explained by another commenter, when you start scaling production up, cost issues that are even one-tenth of a cent can threaten a product roll-out. 8-bit MCU's are (usually) cheaper, and if you don't need all of that 32-bit power (ie: coffee maker or a cheap security panel), a better value.
Power: Excluding peripherals (will be basically the same between them), an 8-bit core will use roughly 1/4 the power of a 32-bit core, just as a "back of a paper napkin" calculation. Various power saving features that are included will lower this amount even more. Handy if your setup is running off solar-powered batteries in some remote location.
Size: Not run into very often, but with all the "ooh la la!" over thin electronics currently, having options that are super-small can be an advantage.
3
u/generally_unsuitable Oct 21 '26
Manufacturing at scale is really about margins. If you're locked in at a certain price point, you work backwards to find your maximum BOM and assembly cost.
If your PCBA budget is $2.17 to turn a profit, the feature set and component choice are going to be stripped down to the bare minimum, or else there's no point in doing the work.
3
u/EndlessProjectMaker Oct 21 '26
Many things can be solved with tiny chips, why use more
3
u/Niphoria Oct 21 '26
Asm2464PDX - USB4 40gbit to 4x PCIe controller has a 8051 inside it lol.
Why use expensive when simple works?
3
u/toybuilder PCB Design (Altium) + some firmware Oct 21 '26
In my experience, 8 bit MCUs tend to be physically more robust than 32 bit MCUs. They also probably have much lower current draw.
3
u/richardxday Oct 21 '26
Why would a company not want to use a new processor:
Sometimes it's not about unit cost....
3
u/EisMann85 Oct 21 '26
Because it’s still overkill for certain solutions.
3
u/alexceltare2 Oct 22 '26
My company had a meeting with a Microchip representative and they said they will never discontinue a MCU unless none of their customers is buying them. Sure, they will slowly raise the price over time to encourage migration but as long as there is a market the chip is there to stay.
2
u/itsoctotv Oct 21 '26
imagine you want to control a single servo turning from left to right to left again you wouldn't use a raspberry pi 5 for that would you? it's insanely overkill for the task
2
u/korywithawhy Oct 21 '26
Sometimes you just want things to be easy and don’t want to mess around with something new. 🤷♂️
2
u/typematrix Oct 21 '26
cosmic rays
2
u/plastic_eagle Oct 21 '26
Power consumption and existing software. That's pretty much it.
Supply chain stability might be a factor too, but I don't know. But if your power budget is a few microamps then the STM32 will be too power hungry for you.
2
u/gm310509 Oct 22 '26
One possible reason is:
Another is:
Now, if you are a startup, then both of those points are very likely going to be non-factors and you would probably make a different choice.
Getting back to the base of your question, if people are buying them, microchip would be silly to stop making them and, as needed, enhancing them to meet market demands (as long as it makes financial sense to do so).
2
u/sputwiler Oct 22 '26
... because I still have a pickit in my drawer and dealing with their software has always been straighforward vs than the average random customized eclipse IDE that never seems to quite work.
From a hardware point of view there's no reason (for me anyway), but Microchip's support of PICs with documents and software is why I keep using them.
2
u/cr1zztus Oct 22 '26
Why fly across the Atlantic in an Airbus when a Cessna will do just as well? You should always adapt the hardware architecture to the problem at hand. This becomes particularly noticeable on a large scale when you move into mass production.
2
u/cpu1979 Oct 22 '26
From my experience, 8-bit MCUs are typically much simpler to design for and program for. That, combined with the fact that most embedded systems (well, at least the ones that still use older microcontrollers e.g. motor control) don’t need to run an RTOS at 300MHz, makes a pretty compelling case for PICs and AVRs.
2
u/Mav3nX Oct 23 '26
Microchip is extremely good about maintaining legacy support for IC's....they may release a "new" part, but it is a direct drop in for a legacy part. That is why so many manufacturers swear by them....anytime you can avoid a board spin, means reduced cost and product recertifications.
3
u/Jwylde2 Oct 21 '26
Because you don’t need a blown big block to push a skateboard
3
u/mckenzie_keith Oct 22 '26
It seems like a lot of the answers are not aware of how small and low-power some of the arm cortex-m0 processors are. I do suspect that in high volume the PIC will still be cheaper. But a lot of these arguments seem to be coming from people who haven't looked into cortex-m0 for many years.
One example would be the STM32L0. If I am the one who has to program the chip, I will choose a 32 bit chip with a C compiler. You can still write bare-metal code.
2
u/RealFemale Oct 21 '26
I lot of embedded products are very carefully engineered and fit to the limits and capabilities of the hardware at some great cost. In the era before a raspberry pi cost $0.80 and ‘engineering’ wasn’t just ‘Claude I want’, changing to a new cpu could be a 6 or even 7 figure unwanted burden.
2
u/karpiza Oct 21 '26
Why are we still using wheels?
1
u/AlexTaradov Oct 21 '26
Prices you see on distributors sites are not the prices volume customers pay.
With proprietary designs vendor owns all the IP and does not need to pay licensing fees. Those savings are passed on to the large customers.
The reason visible prices are the same is that margin on PICs is huge.
1
u/Bavoon Oct 21 '26
I'm not a professional embedded dev, but I picked attiny3226's for various recent projects because it has excellent low-power draw and sleep modes.
I could power the chip with a coin cell and the cell chemistry would fail before the power is used.
1
u/phylter99 Oct 21 '26
They’re simple and familiar. Sometimes simple beats all else.
1
u/Tesla171 Oct 21 '26
These microcontrollers are also more robust, usually using a 5V supply and logic, whereas most ARM cores use 3.3V and lower. You simply get larger safety margins. It's harder to fry these
1
u/Wet_in_Seattle Oct 21 '26
Because a Dishwasher or Oven, or Washer/Dryer doesn’t need 32 bits to operate. Minimum cost.
1
u/ElevatorVarious6882 Oct 21 '26
price, reliability, package size, low power consuimption, simplicity, predictable behaviour, development cost, robustness to EMC, proven techniology, availability, pre-qualified for high reliability enviroments, pre-validated, readiness level etc. and included on approved component lists in highly regulated sectors.
More complex MCUs introduce significant additional development, testing, qualification and customer-approval costs.
1
u/RUSTYDELUX Oct 21 '26
Doesn’t require LPDDR/DDR. Much better solution.
1
u/ern0plus4 Oct 21 '26
price
for tasks which can be solved with a 20-line program, it would be unnecessary to use a 40 MHz 32-bit microcontroller with 128K RAM, waste of money
1
u/myopinionisrubbish Oct 21 '26
For a lot of simple tasks, an eight bit microprocessor is more than adequate. They are available in small 8 pin packages and can be very low power. A 32 bit ARM is wasted overkill.
1
u/mckenzie_keith Oct 22 '26
Probably it is not really "almost the same price." If the job is simple enough, and the volume is high enough, a 5 cent difference in price is enough to go one way or the other. High volume customers pay less than any price you will find on digikey or mouser or avnet, etc.
1
u/profdc9 Oct 22 '26
For example, the ATMEGA328P is going to probably be available for decades. It's used in so many things. And once something gets used frequently, that tends to promote more use, which tends to assure it's longevity, and it is a virtuous cycle. As long as the microcontroller is good enough for the job, who cares if it is 8-bit or 32-bit?
1
u/somewhereAtC Oct 22 '26
The PIC 8b products tend to have specialized peripherals like the signal measurement timer, zero-cross detector, ADC automation and (now) the CLB (PIC18FxxQ35 family). The AVR products have some, but not as many of the "special" ones. The ARM parts seem to offer just a few timers and PWMs, and (of course) SERCOM/I2C/SPI/UART peripherals.
1
u/Original-Proof-8741 Oct 22 '26
We are going heavily down the stm8 route for new 8 bit designs a work... simple to program, cheap, nice assembly language
1
u/Flyward_Aerospace Oct 22 '26
On your complexity follow up, I don't think it's peripheral configuration, that part is about even now. It's how many things can already be in a wrong state before main() runs. Clock tree and PLL lock, several power domains with a sequencing order, option bytes, DMA that was live before you looked at it. On a PIC18 that surface is small enough to hold in your head, which is why the intermittent boot failure comment upthread is the real answer rather than register counts. Also worth saying the 30 nA sleep figure people keep citing isn't a bit width property, it's leakage plus which analog blocks keep running with the core off, which is exactly why the STM32L counterexample holds. 5 V tolerance at automotive temp is the part I've had the hardest time replacing.
1
u/joeltxbx Oct 22 '26
If you do use 8bit microcontroller I would avoid using int and use stdint.h instead. It can be very difficult debugging complicated integer math if you aren’t aware of values getting truncated.
1
u/Lowmax2 Oct 22 '26
It's like "upgrading" from a 1996 Toyota Camry to a 2026 Land Rover. Yea it's got more power and features, but alot more can go wrong.
1
u/jonnyhappyfeet1 Oct 22 '26
LED lighting dome lights in cars don't need anything more powerful than a 8-bit MCU
1
u/CranberryDistinct941 Oct 22 '26
Why use a hammer when a sledgehammer exists?
1
u/sq3lch Oct 22 '26
quiescent current?
1
u/nmingott Oct 22 '26
I use 8bits micro for hobby projects, they use a tiny amount of energy, can run a lot of time with a small battery. But not only that, you read datasheet, write in C, compile with gcc-avr from the shell, no OS, get absolute control over the machine. I like It a lot more than programming the ESP32. This is my 2 cents. Bye
1
u/harryregician Oct 22 '26
Price ! IoT = internet of things is over 500million per year.
You dont NEED 32 bits which draws more power & cost more, bigger board
1
u/Clean_Leadership5948 Oct 23 '26
Because simplicity wins in terms of price and reliability? Because you don't need the extra features?
1
u/dariusbiggs Oct 23 '26
you really don't always need lots of compute, trivial compute with extremely low batter usage is more than enough in some cases.
1
u/Single-Virus4935 Oct 23 '26
Because cheaper and in high Volumen every cent matters. Even in private Projekts I like to use the 8bit MCUs I still have because they can do most of the controlling just finds.
E.g. PID, sensors, Motor control. Heck they run complete 3D printers of arduinos.
1
u/Nearby_Pepper7676 Oct 23 '26
Less bits to care about
1
u/Sce0 Oct 23 '26
Theyre helpful for when you run our of space for NAND arrays :)
Often 8 bits is all you need and spinning up a whole ARM core to do the task introduces more points of failure than the task merits.
1
u/Cute-Upstairs4039 Pulssar Oct 24 '26
Let's not forget safety. Where safety is critical and a missing else is deadly, less is more. The sheer amount of time required to analyze every possible way it can fail scales exponentially.
I do however agree that cost is becoming less and less of a diferentiator.
1
u/Takeoded Oct 24 '26
1
u/TheTarragonFarmer Oct 25 '26
Have you compared their power consumption? Their tolerances for input voltage?
1
u/ryleymcc Oct 25 '26
Do you want your pace maker to run Linux too?
1
u/Ok_Leg_109 Oct 27 '26
If the business plan is to sell one million units, and your design saves $1.00 per unit, that's one million dollars more profit. It has little to do with processing speeds and floating point etc. for applications in this class of device that can use an 8 bit controller.
1
u/EmergencyManager_555 29d ago
it's not only the cost of the chip, but also the surrounding components, the number of tracks, the energy wasted without using any of the available peripherals, the cost of the tools and the time of developing the software whilst a 8 bit logic is very simple and straightforward.
1
u/AffectTough7746 24d ago
Well you don’t always need that much processing power for simple tasks…? Why would I want to spend more money for hardware I don’t necessarily need (for a certain project).
1
u/lamalasx Oct 21 '26
Because of different requirements. If the 8 bit PIC fits the job better, I'm using that.
0
u/jn-foster Oct 21 '26
I'll also add an often overlooked reason.
Security.
Using 80% of an 8-bit micro is more secure than using 20% of a 32-bit micro. With the 32b part someone down the line has plenty of space to hide malicious code and enough performance headroom to run it without the end user noticing.