Key Considerations When Migrating from MCUs to Hybrid MCUs
When migrating from an MCU to a hybrid MCU, it is important to assess a variety of factors related to the two components' hardware capabilities, communication protocols, power consumption, and system requirements. Here’s a structured approach you can follow.
Identify System Requirements
Scope: Assess the current system requirements and determine if the MCU can meet the expanded computing power and memory resources needed. If not, transitioning to a hybrid MCU may be necessary.
- Processing power: Check if the processing power (e.g., clock speed, instruction set) of the MCU or hybrid MCU matches your application’s requirements.
Memory requirements: Assess the system's need for RAM and Flash memory. MCUs usually have built-in memory and less RAM compared to hybrid MCUs like SAM9X6 and SAM9X series MPUs, which may require external RAM and storage. Microchip provides SiPs with integrated SDRAM, DDRx or LPDDRx memory and an MPU. Microchip SOM takes it a step further by integrating power management, an Ethernet PHY, nonvolatile boot memory, and an optional wireless module on a small Printed Circuit Board (PCB).
- Peripherals and I/O: Evaluate the types of sensors, actuators, and communication interfaces (e.g., UART, SPI, I2C, GPIO) the system needs.
- A general feature comparison table is provided here for reference:
MCUs Hybrid MCUs Feature PIC32MZ DA Family SAM E70
FamilySAM9X60 SAM9X75 Speed 200 MHz 300 MHz 600 MHz 800 MHz Core MIPS32® microAptiv™ Arm® Cortex®-M7 ARM926EJ-S ARM926EJ-S SD/SDIO/eMMC Bus Interface 1 1 2 2 External BUS Interfaces QSPI NOR and NAND Flash NAND & QSPI NAND, QSPI, OSPI SDRAM Support DDR2 SDRAM 16-bit (SDRAM, SRAM) DDR2/LPDDR DDR2/DDR3L Flash Up-to 2 MB Up-to 2 MB – – SRAM Up-to 640 KB 256 KB, 384 KB 64KB 64KB 2D GPU Yes No Yes Yes LCD Interface Parallel RGB No Parallel RGB Parallel RGB, LVDS, MIPI Camera Interface No Image Sensor Interface Parallel Interface Parallel & MIPI CSI CLASS D No No 1 1 CAN 2 2 CAN-FD 2 2 CAN-FD USB 1 USB 2.0 OTG 1 USB2.0 Device/Mini Host 2x host + 1x (host or device) 3 (3 hosts or 2 hosts/1 device) SSC & I2S audio 1 I2S 2 I2S 1 SSC, 1 I2S 1 SSC, 1 I2S DMA 8 16 Ethernet 10/100 Mbps 10/100 Mbps 10/100 Mbps(1x MII / RMII + 1x RMII) 10/100/1000 Mbps with IEEE-1588 and TSN support ADC 45 channels 2 x 12-channel 12 Channels 8 Channels Anti Tamper Protection No Yes- 2Pins Yes-8Pins Yes-8Pins Security AES, 3DES, SHA, MD5 & HMAC TRNG, AES 256, SHA Advanced(TDES / AES / SHA + Secure bootloader) Advanced(TDES / AES / SHA + Secure bootloader) Timers/Compare/Capture 13(9 - 16-bit, 4 -3 2-bit) Four 3-channel 16-bit Timer 7(6 - 32-bit & 1 - 64-bit) 8(6 - 32-bit & 2 - 64-bit) AEC-Q100 Grade 2 No Grade 2 Grade 2 RTCC Yes Yes Yes Yes PWM – Two 4-channel 4 4 SPI/I²S™ 6 2 13 6 I²C 5 3 13 13 UART 6 5 13 13 Pin Count 169, 176, 288 64-144 112 106 Packages LFBGA, LQFP QFN BGA 228 BGA 240 Operating condition -40ºC to +85ºC -40ºC to +105ºC -40°C to +125°C -40°C to +125°C
Evaluate Processing Power and Architecture
MCU architecture (e.g., Arm Cortex-M, AVR® and PIC® MCU, etc.): Understand the architecture’s capabilities for handling low-level tasks such as timing, GPIO control, and interrupt handling.
- Hybrid MCU architecture (Arm9™): Ultra-low power hybrid MCUs support multitasking, complex algorithms, and running an operating system (e.g., Linux® or RTOS).
- Clock speed and throughput: MCUs often operate at lower clock speeds and have limited processing capabilities, while hybrid MCUs typically have higher clock speeds, up to 800 MHz, and can handle more complex tasks.
Interfaces and I/O Compatibility
Peripherals: Compare the I/O interfaces, including ADCs, DACs, UARTs, SPI, I2C, GPIO, PWM, etc., and determine whether the MCU or hybrid MCUs support the necessary interfaces for the application.
- External communication: For MPUs, you may need to connect external devices such as displays, storage (e.g., eMMC), and networking interfaces (Ethernet, Wi-Fi®, USB). Assess how the MCU or hybrid MCUs handle these connections.
- Compatibility with external devices: Ensure the MCU or hybrid MCUs can interface with the sensors and actuators used in the application, considering voltage levels, signal integrity, and protocol support.
Operating System (OS) Compatibility
MCU (no OS or RTOS): Many MCUs operate without an operating system or run a real-time operating system (RTOS), which provides real-time scheduling and task prioritization for embedded systems.
- Hybrid MCUs (Linux, Android®, or RTOS): Hybrid MCUs often run full-fledged operating systems like Linux, bare-metal, or RTOS, which offer multitasking and complex software stacks. Hybrid MCUs support is added in mainline Linux distribution.
Availability of Development Tools
Ensure that the MCU or hybrid MCU has a rich set of development tools, including compilers, debuggers, and IDEs. Microchip Hybrid MCUs can be developed on MPLAB X IDE with the MPLAB Harmony v3 peripheral libraries and debug using the MPLAB PICkit™ 5 debugger similar to that of MCU application development.
Software and Firmware Development Considerations
MCU software development: Typically involves low-level programming with languages like C, assembly, or C++. The software stack is often minimal and tailored to embedded real-time systems.
- Hybrid MCU software development: If using a full OS (like Linux), you will need software stacks and tools for application development, kernel modifications, and possibly device driver development, which is supported for hybrid MCUs.
- Compatibility with middleware and libraries: MPLAB Harmony v3 provides support for Hybrid MCU with the necessary software libraries and middleware for your application (e.g., communication protocols, drivers) similar to that of the MCUs.
Power Management
Power efficiency: MCUs are generally more power-efficient than hybrid MCUs, making them ideal for battery-powered or low-power applications. Compare the power consumption requirements of both devices under different operating conditions.
Hybrid MCUs typically require multiple power rails and power domains. Using a Power Management Integrated Circuit (PMIC) can simplify the design by integrating voltage regulators and control into a single component, saving design time and simplifying the board layout. The SAM9X60 SOM and SAM9X75 SOM take it a step further by integrating power management, an Ethernet PHY, nonvolatile boot memory, and an optional wireless module on a small PCB.
Board Layout and Design
- Plan the board layout to accommodate the hybrid MCUs, power circuitry, and memory. Using a System-in-Package (SiP) module can reduce the board area and simplify the design.
Learn More
- Hybrid MCUs Introduction
- Key Benefits of MCU to Hybrid MCU Migration: Performance, Scalability, Advanced Features
- Migrating a Graphics Application from a PIC32MZDA MCU to a SAM9X60 Hybrid MCU Curiosity Development Board
- Migrating a Graphics Application From a PIC32MZDA MCU to a SAM9X75 Hybrid MCU Curiosity Development Board
- Getting Started Graphics on SAM9X60
- 32-bit Microprocessor (MPU) Evaluation Kits and Development Boards