mcu titus session 2
TRANSCRIPT
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 1/33
Microcontrollers, Basics
How Do I Choose the Right MCU?
17 January 2012
Jonathan A. Titus
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 2/33
2
Questions to Answer
Do you have the needed time, talent, and budget for thisproject?
What happens if you cannot find an ideal MCU?
Are you already familiar with an MCU family andassociated hardware and software tools?
Does your company dictate approved vendors? You might start with a limited group of MCU choices.
What are your product restraints, requirements, andspecifications?
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 3/33
3
What Will Your Product Need?
1. A human interface: Keyboard, display, annunciator,motor, solenoid..?
Does the display need a touch-control overlay? MCUs have built-intouch-control electronics
Some MCUs can directly drive LCD segments. Do you need individual pixel control?
Build or buy an off-the-shelf LCD?
How many I/O pins will the human interface need?
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 4/33
4
What Will Your Product Need? 2. Control-and-measurement capabilities?
Will standard digital, analog, and communication portssuffice? Beware of pin conflicts!
Must the MCU measure analog signals?
How many analog inputs and outputs?
What resolution and accuracy do you require?
Do you need signal conditioning circuits?
Do you need interrupts? Do you need PWM outputs?
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 5/33
5
What Will Your Product Need?
3. Do you need real-time or near real-time performance? You might need a real-time operating system, or a
scheduler for your application.
Ethernet and USB communications require real-timeresponse from an MCU.
Something you cannot determine an MCUs real-timecapability until you create some code and test it.
Find out what MCU vendor software libraries offer.
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 6/33
6
What Will Your Product Need?
4. Whats your power budget?
Line power
Battery power
Alternate energy source MCU low-power and sleep modes
Take advantage of power-
measuring development
software tools Consider system power
needs and control
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 7/33
7
What Will Your Product Need?
5. What types of communications does your product need?
Chip-level: SPI, I2C, I2S?
System-level: CAN, UART, Ethernet..?
Wireless communications?
Standard or proprietary?
DIY or drop-in module?
FCC or agency approvals? Range and data rate?
Regional limits?
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 8/33
8
What Will Your Product Need?
6. Do you need math operations?
Some MCUs have a multiplier-accumulator, whichhelps speed FFTs, FIR filter routines, etc.
Floating point or fixed point?
Single- or double-precision math?
IEEE 754?
Can MCU vendors supply a math library?
Use a math add-on chip: Micromega 28-pin IC
www.micromegacorp.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 9/33
9
What Will Your Product Need? 7. Does your product require security?
How much security do you need?
Must you protect code, data, or both?
Investigate secure MCUs.
Will the Advanced Encryption Standard (AES) suffice?
Look for an MCU that includes an AES engine.
Buy or license encryption-decryption libraries.
WW II Enigma Machine
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 10/33
0
ATM Approach to Security
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 11/33
11
Security-related references:
"Practical Embedded Security," by Timothy Stapko, Newnes. ISBN: 978-0-
7506-8215-2.
"Cryptography for Developers," Tom St. Denis and Simon Johnson,
Syngress. ISBN: 9781597491044.
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 12/33
12
What Will Your Product Need?
8. Will your product involve safety of humans?
Learn about safety standards from FDA, FAA, FCC, etc.
Ask software companies for information about tools
that measure compliance with standards: MISRA C,DO-178, etc.
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 13/33
13
Use MCU Selection Tools
Web sites let you choose selection criteriaand find MCUs:
datasheets.com
gruntwareinc.com
Vendor sites
Distributor sites
Examples follow...
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 14/33
14
datasheets.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 15/33
15
datasheets.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 16/33
16
gruntwareinc.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 17/33
17
gruntwareinc.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 18/33
18
gruntwareinc.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 19/33
19
digikey.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 20/33
20
digikey.com
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 22/33
22
Investigate MCU HW Tools
What hardware tools does an MCU vendor offer?
Evaluation boards and kits
Development boards and kits
Reference designs Schematic diagrams
PCB files
Bill of materials (BOM)
Code Download and review
manuals and user guides
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 23/33
23
Investigate MCU SW Tools
What software tools does an MCU vendor offer?
Complete set of coding tools -- integrated development
environment (IDE)
Editor, assembler, compiler, debugger
Project-management software
Technical support and user forums
Application notes
Software examples Libraries
More about software in the next session
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 24/33
24
Dig Deeper
Locate more information and tools:
Run a Web search to find independent informationabout hardware, software, tools, and problems andaccolades.
Look at third-party development hardware andsoftware.
Examine information about your chosen MCU¶s
³family.´
Ask vendors about their MCU roadmap.
Try demo software before you buy.
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 25/33
25
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 26/33
26
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 27/33
27
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 28/33
28
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 29/33
29
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 30/33
30
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 31/33
31
Hed
Text
Bullets
If
Needed
8/3/2019 MCU Titus Session 2
http://slidepdf.com/reader/full/mcu-titus-session-2 32/33
32
Hed
Text
Bullets
If
Needed