Practical Tips | Teach you how to choose a microcontroller
Selecting the right microcontroller for your product can be a daunting task. Not only do you have to consider the many technical features, but there are also business aspects like cost and lead time that can cripple your project.
Early in a project, you may be tempted to jump in and start selecting a microcontroller before agreeing on the details of the system, but this is of course a bad idea.
Before any thought is given to microcontrollers, hardware and software engineers should first develop high-level specifications of the system, draw block diagrams and flow charts, and only then will they have enough information to make a rational decision on microcontroller selection. When you reach this stage, you can follow 10 simple steps to ensure that you make the right choice.
Step 1: Make a list of required hardware interfaces
If the application requires USB or some form of Ethernet, make special notes. These interfaces have a significant impact on the amount of program space the microcontroller needs to support. Secondary interfaces are digital inputs and outputs, analog to digital inputs, and PWM interfaces.
These two interface types will dictate the number of pins required on the microcontroller. Figure 1 shows a generic example block diagram that lists the I/O requirements.
Step 2: Check the software architecture
Step 3: Choose an architecture
Just because an 8-bit microcontroller meets your requirements today does not mean you should not consider a 16-bit microcontroller for future functionality or ease of use. Remember that microcontroller selection can be an iterative process. You may choose a 16-bit part during this step and find in a later step that a 32-bit ARM part is a better fit. This step simply allows the engineer to determine the right direction to move forward.
Step 4: Determine storage requirements
It is not uncommon to find at the end of a design that 110% of the space is needed or that some functionality needs to be cut. After all, you always start out wanting more and then move to a slightly more limited part in the same chip family. Using the software architecture and communication peripherals included in the application, the engineer can estimate the amount of flash and RAM required for the application. Remember to leave room for feature expansion and subsequent versions! This can save a lot of trouble in the future.
Step 5: Start looking for a microcontroller
Talk to the FAE about your application and requirements, many times they can recommend new parts that are both cutting edge and will meet the requirements. Just remember that they may be under pressure to promote a certain line of microcontrollers at the moment!
The next best place to start is with chip suppliers that you are already familiar with. For example, if you have used certain microchip parts in the past and have a good relationship with the supplier, start your search on their website.
Most chip vendors have search engines where you can enter your peripheral set, I/O and power requirements, and it will narrow down the list of parts that match your criteria. From that list, the engineer can then proceed to select a microcontroller.
Step 6: Check cost and power constraints
If parts do not meet the power requirements, they should be eliminated from the list until one is selected that does. Also, don't forget to check the unit price of the processor. Although many parts have stabilized at around $1 in wholesale prices, if the part is highly specialized or a high-end processor, the unit price can be very important. Don't forget this critical factor.
Step 7: Check Parts Availability
The next question is how old the part is and whether it will remain available for the life of your product. If your product is to be available in 10 years, then you want to look for parts that the manufacturer guarantees will be produced within 10 years.
Step 8: Select a Development Kit
If there is no development kit available, then it is very likely that the part you have chosen is not the best choice and it is time to take a few steps back and find a better part. Most development kits are now priced under $100. If it is more than that (unless it is designed to be used with multiple processor modules), it is clearly too expensive. Other parts may be more suitable.
Step 9: Investigate compilers and tools
Step 10: Start experimenting
You may find that a part you thought was a good fit has some unforeseen problems, and be forced to choose a different microcontroller. In any case, early experimentation will ensure that you make the right choice, and that if changes are necessary, the impact will be minimal!
EEWorld's "Device Search" applet is now online!
Check the data of tens of millions of devices at your fingertips and browse the documents online in real time
Free download, easy and convenient, a collection of commonly used devices
Disclaimer: This article is reprinted from the Internet, and the copyright belongs to the original author. If the videos, pictures, and texts used in this article involve copyright issues, please leave a message at the end of the article to let us know, and we will deal with it as soon as possible! The content of this article is the original author's point of view, and does not mean that this public account agrees with its point of view and is responsible for its authenticity.
Recommended Reading
Useful information | Detailed explanation of the complete circuit diagram
Useful Information | How is the negative voltage commonly used in microcontrollers generated?
Practical Tips | The principle and correct use of brushless DC (BLDC) motors
Useful Information | What is PID control? You will understand it in seconds after reading this!
Practical knowledge | Detailed illustrations of the basics of circuits
Since the WeChat official account has recently changed its push rules, if you want to see our articles frequently, you can click "Like" or "Reading" at the bottom of the page after each reading, so that each pushed article will appear in your subscription list as soon as possible.
Or set our public account as a star. After entering the public account homepage, click the "three dots" in the upper right corner, click "Set as Star", and a yellow five-pointed star will appear next to our public account name (the operation is the same for Android and iOS users).
Featured Posts
- 【Beetle ESP32-C3】4. Luat-OS environment deployment
- IstartedusingESPfrom8266,andjumpeddirectlyfromAnxinke'sEclipsedevelopmenttoArduino.Atthattime,IheardthatLuacouldalsobeusedfordevelopment.AlthoughIlaterpurchasedNodeMCU,IusedtheArduinoIDEdirectlyaftergettingit
- sonicfirr RF/Wirelessly
- Keysight Technologies’ live broadcast with prizes | Thanksgiving Month Opening Ceremony – Oscilloscope Lecture starts at 10am today!
- KeysightTechnologies’livebroadcastwithprizes|ThanksgivingMonthOpeningCeremony–OscilloscopeLecturestartsat10amtoday! Clickheretoenterthelivebroadcast Livebroadcasttime:10:00-12:00,June6,2022(Monday) LiveTop
- EEWORLD社区 Integrated technical exchanges
- Preventing AI large models from being hacked and controlled by viruses (original) Review of the Lingsi large model AI development kit 4
- WhendesigningtopreventlargeAImodelsfrombeinghackedbyviruses,itisnecessarytoconsiderthecomplexencryptionanddecryptionalgorithmsandtheimplementationdetailsofthemodel.First,itisnecessarytounderstandthestructurean
- 还没吃饭 Security Electronics
- IGBT application circuit for high current drive
- Myprojectwantstocontroltheon-offcircuitof60V100ADC.Ican'tuseacontactor,soIwanttouseIGBTtocontrolit,butIdon'tknowanythingabouttheIGBTdrivecircuit.Ihopeyoucangivemesomeguidanceandprovidesomespecificappli
- cheery60 Power technology
- [DigiKey "Smart Manufacturing, Non-stop Happiness" Creative Competition] STM32H7B3I-DK Unboxing Post
- TheSTM32H7B3I-DKselectedforthiscompetition,theSTM32H7B3I-DKDiscoverykitisacompletedemonstrationanddevelopmentplatformfortheSTMicroelectronicsArmCortex-M7coreSTM32H7M33LIH6QUmicrocontroller.TheSTM32H7B3seriesdevicesarebas
- mameng DigiKey Technology Zone
- [SparkFun MGM240P Thing Plus Matter Review] +thread Experiment 1
- +threadExperiment1 TherewasonlyoneMGM240Pboard,soitwasnoteasytodothisexperiment.Butafterlookingthroughtheboardsatthebottomofthebox,Ifoundnrf52840usb-dongleandnrf52840dkboards.SoIstarted. First,u
- damiaa RF/Wirelessly