环球电气之家-午夜精彩视频-中国专业电气电子产品行业服务网站!

產(chǎn)品分類

當(dāng)前位置: 首頁 > 工業(yè)電子產(chǎn)品 > 半導(dǎo)體產(chǎn)品 > 微處理器MPU > Cortex

類型分類:
科普知識
數(shù)據(jù)分類:
Cortex

Which ARM Cortex CPU is Right for Your Next MCU-Based Application?

發(fā)布日期:2022-05-18 點(diǎn)擊率:100

       
ARM-based CPUs are ubiquitous in the MCU world and often there are several available from the same MCU supplier. Each ARM CPU has been optimized for a class of specific processing requirements, from low-end power-constrained applications to high-power performance-optimized, dual-core applications. The most popular ARM CPU today in MCU devices seems to be the Cortex CPU. How do you decide which ARM Cortex CPU is the right one for your application? Let’s explore the primary differences between some of the more popular Cortex-based MCUs by looking at example implementations that will help you decide which one is just right for your next design.

Many options

It’s not unusual to find many different ARM Cortex CPUs within a single MCU family. The Cortex CPU and its optional extensions address a variety of application needs, but all have backward-compatible instruction sets, as illustrated in Figure 1. Starting with the Cortex-M0/M0+/M1 family, the instruction set is targeted for general-purpose data processing and IO tasks. The Cortex-M3 CPU adds advanced-data processing and bit-field manipulation instructions that speed up more complex control and general-purpose computational tasks. The Cortex-M4 CPU adds Digital-Signal processing (DSP) instructions and offers Single-Instruction Multiple-Data (SIMD) operations where the same data-processing instruction can operate on multiple-data sources at the same time. These specialized capabilities can dramatically accelerate complex data-processing tasks, like those found in audio and video applications. The Cortex-M4 CPU can also add a Floating Point Unit (FPU) when performance and precision are both important elements for the target algorithm. Analog sensing and motor control, for example, often use floating point for its precision, but high performance is required for fast-control loop closure.

Image of ARM Cortex MCUs instruction set compatibility


Figure 1: ARM Cortex MCUs instruction set compatibility. (Courtesy of ARM and STMicroelectronics) 


One key advantage of this regular- and backward-compatible instruction set is that MCU manufacturers can create devices optimized for specific applications, while “covering all bets” by having upward compatibility if the algorithm grows in complexity during the lifetime of the target system. For example, how many times have you needed to add more complex functions in order to satisfy new requirements during development? The upward compatibility of the Cortex Instruction Set Architecture (ISA) makes this easy. In some cases it is possible to simplify the target architecture too, since downward compatibility allows you to reduce cost if lower performance is acceptable.

STMicroelectronics has used several ARM Cortex CPUs within its STM32 MCU family. Figure 2 illustrates the various Cortex CPUs and the key hardware features associated with each MCU series. Notice that the Cortex-M0 CPU is used on the entry-level STM32F030/50/051 devices while the Cortex-M4 with DSP and FPU is used on the high-performance STM32F4xx (such as the STM32F401RCT6) and STM32F3xx devices. The mid-range devices use the Cortex-M3 CPU where the more complex DSP and FPU instructions are not required to have the highest possible performance. (These instructions can be implemented with multiple instructions if needed and most compilers provide a fairly transparent method for switching between hardware implementations and multi-cycle “soft” implementations.)

Image of STMicroelectro<em></em>nics STM32F MCU family Cortex CPUs


Figure 2: STM32F MCU family Cortex CPUs and key hardware features. (Courtesy of STMicroelectronics) 


Other vendors also support multiple flavors of ARM Cortex MCUs, often over wide performance and cost ranges. Silicon Labs, for example, has the EFM32 family of MCUs (e.g., the EFM32ZG222F32-QFP48) that use the ARM Cortex-M CPU. The low-end low-power GZ series uses the Cortex-M0+ CPU while the mid-range TG, G, LG, and GG series use the Cortex-M3 CPU. The high-end WG series uses the Cortex-M4 CPU with DSP and FPU enhancements. There are 10 different package options making it possible, with a little up-front planning, to migrate from one CPU type to another, making it easier to adapt to changing requirements or to offer different products using the same base design.

The Cortex-A architecture

The Cortex-M architecture is a very popular one with MCU manufacturers, but the Cortex-A architecture is also showing up in vendors’ devices as well, often in MPUs, where large external memories are used for instructions and data. The Cortex-A CPU is optimized for very-high-performance applications, often with requirements for features like video playback and advanced security. The Atmel Cortex-A5-based SAMA5D4 MPUs, for example (Figure 3), use the Cortex-A5 CPU with a 2 x 32 kb Level 1 cache and a 128 kb Level 2 cache to speed processing performance. An on-chip DDR2/LPDDR/LPDDR2 controller accesses instructions and data from an external memory so very large programs and data sets can be used. Video processing algorithms, for instance, can require very large data sets and also very large programs. Hardware subsystems provide significant capabilities for security, connectivity, control, and user interfaces to simplify the creation of complex human machine interfaces and the associated control systems.

Image of Atmel SAMA5D4 MPU block diagram


Figure 3: Atmel SAMA5D4 MPU block diagram. (Courtesy of Atmel) 


The SAMA5D4 also supports two important Cortex extension functions – Trust Zone and NEON. Trust Zone supports secure code execution. Typically a processor needs to execute some security-related functions (such as secure PIN entry, or password protection) as well as some normal program functions (such as a graphic display or menu-selection routines). Trust Zone hardware extensions allow the programmer to protect security-related functions from normal accesses and potential security attacks. Even debug capabilities can be limited to just the normal program to further protect the secure routines from snooping and similar attacks.

The NEON extensions provide significant processing performance improvements for SIMD-based algorithms. Common targets for the NEON extension are multimedia, signal processing 2D/3D graphics, video encode/decode, and sound synthesis. NEON has its own independent pipeline and register file and can support signed/unsigned 8-, 16-, 32-, 64-bit, and single-precision floating-point operations on 32 registers that are treated as 64- or 128-bits wide depending on the instruction. NEON can typically provide a significant performance boost over non-SIMD implementations; a 60-150 percent performance boost on complex video codecs is a typical example.

Multi-core CPU solutions

ARM Cortex CPUs are also showing up in multi-core MCU implementations. These devices sometimes have two different performance CPUs, one very-high performance for the “heavy lifting” of the target application functions, and a slower-performance CPU for managing communications ports, user interfaces, and similar low-level control functions. Other multi-core devices have the same type of CPU, just replicated, to make it easy to partition and allocate less-specialized processing functions to achieve the right balance of processing and power efficiency. For example, one CPU could be put in a low-power wait state if it is not required to meet the performance requirement (perhaps during a “slow” data period) and then turned on when additional processing is required.

Texas Instruments, in its Concerto MCU family illustrated in Figure 4 (as an example see the F28M35H52C1RFPT) has added an ARM Cortex-M3 processor to its popular C28x CPU to provide an easy solution for both control and connectivity in a single device. The C28x CPU has been optimized for real-time control and it can leverage its 15+ years of DSP-application experience. The ARM Cortex-M3 CPU is optimized for communications applications and it can leverage the extensive ARM ecosystem for communications drivers (Ethernet, USB, CAN, SPI, etc.) as well as robust scheduling and O/S support.

Image of Texas Instruments dual CPU core Concerto? MCU family


Figure 4: Dual CPU Core Concerto? MCU family from Texas Instruments. (Courtesy of Texas Instruments) 


Matching your application to the right ARM Cortex CPU

You can find ARM Cortex CPUs in a wide variety of MCU families from just about every MCU manufacturer. In order to match the right Cortex CPU with your application you should start by determining which instruction set is the best fit for your application. In particular, look to see if advanced-data-processing capabilities like floating point or DSP are required. Do you need even more advanced features like NEON or Trust Zone? Perhaps your application is more control oriented and low power is a key requirement? If so, the simpler M0 architecture might be the right fit. Mid-range designs can take advantage of the Cortex-M3 CPU and select the device based on connectivity requirements and other key peripherals – you typically have the most choice in mid-range devices from your MCU manufacturer.

If your requirements change during the design phase you may want to be able to migrate to a more feature-rich device or to a more feature-lean device. In this case it may be important to select an MCU family that supports easy migration between devices. You can also use the large ARM Cortex ecosystem to leverage proven drivers, an RTOS, function-specific libraries and development-tool chains. No matter what ARM Cortex CPU you select you can be sure there will be a robust ecosystem available to simplify your design.

For more information on the parts discussed in this article, use the links provided to access product pages on the Digi-Key website.

下一篇: 斷路器、隔離開關(guān)、接

上一篇: 索爾維全系列Solef?PV

推薦產(chǎn)品

更多
主站蜘蛛池模板: 生鲜配送系统-蔬菜食材配送管理系统-连锁餐饮订货配送软件-挪挪生鲜供应链管理软件 | elisa试剂盒价格-酶联免疫试剂盒-猪elisa试剂盒-上海恒远生物科技有限公司 | 艺术生文化课培训|艺术生文化课辅导冲刺-济南启迪学校 | 一体化隔油提升设备-餐饮油水分离器-餐厨垃圾处理设备-隔油池-盐城金球环保产业发展有限公司 | 冷却塔降噪隔音_冷却塔噪声治理_冷却塔噪音处理厂家-广东康明冷却塔降噪厂家 | 济南货架定做_仓储货架生产厂_重型货架厂_仓库货架批发_济南启力仓储设备有限公司 | 冷镦机-多工位冷镦机-高速冷镦机厂家-温州金诺机械设备制造有限公司 | 耐破强度测试仪-纸箱破裂强度试验机-济南三泉中石单品站 | 找果网 | 苹果手机找回方法,苹果iPhone手机丢了找回,认准找果网! | NM-02立式吸污机_ZHCS-02软轴刷_二合一吸刷软轴刷-厦门地坤科技有限公司 | 欧必特空气能-商用空气能热水工程,空气能热水器,超低温空气源热泵生产厂家-湖南欧必特空气能公司 | 自动化改造_智虎机器人_灌装机_贴标机-上海圣起包装机械 | 液压油缸-液压站生产厂家-洛阳泰诺液压科技有限公司 | 北京企业宣传片拍摄_公司宣传片制作-广告短视频制作_北京宣传片拍摄公司 | 冷水机-工业冷水机-冷水机组-欧科隆品牌保障 | 重庆LED显示屏_显示屏安装公司_重庆LED显示屏批发-彩光科技公司 重庆钣金加工厂家首页-专业定做监控电视墙_操作台 | 电伴热系统施工_仪表电伴热保温箱厂家_沃安电伴热管缆工业技术(济南)有限公司 | 数控走心机-走心机价格-双主轴走心机-宝宇百科 | 坏男孩影院-提供最新电影_动漫_综艺_电视剧_迅雷免费电影最新观看 | 最新范文网_实用的精品范文美文网 | 重庆私家花园设计-别墅花园-庭院-景观设计-重庆彩木园林建设有限公司 | 济南ISO9000认证咨询代理公司,ISO9001认证,CMA实验室认证,ISO/TS16949认证,服务体系认证,资产管理体系认证,SC食品生产许可证- 济南创远企业管理咨询有限公司 郑州电线电缆厂家-防火|低压|低烟无卤电缆-河南明星电缆 | ?水马注水围挡_塑料注水围挡_防撞桶-常州瑞轩水马注水围挡有限公司 | 烟气换热器_GGH烟气换热器_空气预热器_高温气气换热器-青岛康景辉 | 彩超机-黑白B超机-便携兽用B超机-多普勒彩超机价格「大为彩超」厂家 | 微型气象仪_气象传感器_防爆气象传感器-天合传感器大全 | 恒温恒湿试验箱厂家-高低温试验箱维修价格_东莞环仪仪器_东莞环仪仪器 | 成都办公室装修-办公室设计-写字楼装修设计-厂房装修-四川和信建筑装饰工程有限公司 | 米顿罗计量泵(科普)——韬铭机械| 佛山商标注册_商标注册代理|专利注册申请_商标注册公司_鸿邦知识产权 | 天津仓库出租网-天津电商仓库-天津云仓一件代发-【博程云仓】 | 偏心半球阀-电动偏心半球阀-调流调压阀-旋球阀-上欧阀门有限公司 | 游泳池设备安装工程_恒温泳池设备_儿童游泳池设备厂家_游泳池水处理设备-东莞市君达泳池设备有限公司 | 自动记录数据电子台秤,记忆储存重量电子桌称,设定时间记录电子秤-昆山巨天 | 河北中仪伟创试验仪器有限公司是专业生产沥青,土工,水泥,混凝土等试验仪器的厂家,咨询电话:13373070969 | 湖南印刷厂|长沙印刷公司|画册印刷|挂历印刷|台历印刷|杂志印刷-乐成印刷 | 探鸣起名网-品牌起名-英文商标起名-公司命名-企业取名包满意 | HDPE土工膜,复合土工膜,防渗膜价格,土工膜厂家-山东新路通工程材料有限公司 | 金属雕花板_厂家直销_价格低-山东慧诚建筑材料有限公司 | 【铜排折弯机,钢丝折弯成型机,汽车发泡钢丝折弯机,线材折弯机厂家,线材成型机,铁线折弯机】贝朗折弯机厂家_东莞市贝朗自动化设备有限公司 | 进口试验机价格-进口生物材料试验机-西安卡夫曼测控技术有限公司 |