SLAAEF9A November   2023  ā€“ May 2025 MSPM0C1104 , MSPM0G3507 , MSPM0H3216 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1306 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1MSPM0 Portfolio Overview
    1. 1.1 Introduction
    2. 1.2 Portfolio Comparison of Renesas RL78 MCUs to MSPM0 MCUs
  5. 2Ecosystem And Migration
    1. 2.1 Ecosystem Comparison
      1. 2.1.1 MSPM0 Software Development Kit (MSPM0 SDK)
      2. 2.1.2 The IDE Supported By MSPM0
      3. 2.1.3 SysConfig
      4. 2.1.4 Debug Tools
      5. 2.1.5 LaunchPadā„¢
    2. 2.2 Migration Process
      1. 2.2.1 Step 1: Choose The Right MSPM0 MCU
      2. 2.2.2 Step 2. Set Up IDE And Quick Introduction of CCS
        1. 2.2.2.1 Set Up IDE
        2. 2.2.2.2 Quick Introduction of CCS
      3. 2.2.3 Step 3: Set Up MSPM0 SDK And Quick Introduction of MSPM0 SDK
        1. 2.2.3.1 Set Up MSPM0 SDK
        2. 2.2.3.2 Quick Introduction of SDK
      4. 2.2.4 Step 4: Software Evaluation
      5. 2.2.5 Step 5. PCB Board Design
      6. 2.2.6 Step 6. Mass Production
    3. 2.3 Example
  6. 3Core Architecture Comparison
    1. 3.1 CPU
    2. 3.2 Embedded Memory Comparison
      1. 3.2.1 Flash Features
      2. 3.2.2 Flash Organization
        1. 3.2.2.1 Flash Memory Regions
        2. 3.2.2.2 NONMAIN Memory of MSPM0
        3. 3.2.2.3 Flash Memory Registers of RL78
      3. 3.2.3 Embedded SRAM
    3. 3.3 Power-up and Reset Summary and Comparison
    4. 3.4 Clocks Summary and Comparison
      1. 3.4.1 Oscillators
        1. 3.4.1.1 MSPM0 Oscillators
      2. 3.4.2 Clock Signal Comparison
    5. 3.5 MSPM0 Operating Modes Summary and Comparison
      1. 3.5.1 Operating Modes Comparison
      2. 3.5.2 MSPM0 Capabilities in Lower Modes
      3. 3.5.3 Entering Lower-Power Modes
      4. 3.5.4 Low-Power Mode Code Examples
    6. 3.6 Interrupts and Events Comparison
      1. 3.6.1 Interrupts and Exceptions
        1. 3.6.1.1 Interrupt Management of RL78
        2. 3.6.1.2 Interrupt Management of MSPM0
      2. 3.6.2 Event Handler of MSPM0
      3. 3.6.3 Event Link Controller (ELC) of RL78
      4. 3.6.4 Event Management Comparison
    7. 3.7 Debug and Programming Comparison
      1. 3.7.1 Debug Comparison
      2. 3.7.2 Programming Mode Comparison
        1. 3.7.2.1 Bootstrap Loader (BSL) Programming of MSPM0
        2. 3.7.2.2 Serial Programming (Using External Device) of RL78
  7. 4Digital Peripheral Comparison
    1. 4.1 General-Purpose I/O (GPIO, IOMUX)
    2. 4.2 Universal Asynchronous Receiver-Transmitter (UART)
    3. 4.3 Serial Peripheral Interface (SPI)
    4. 4.4 Inter-Integrated Circuit (I2C)
    5. 4.5 Timers (TIMGx, TIMAx)
    6. 4.6 Windowed Watchdog Timer (WWDT)
    7. 4.7 Real-Time Clock (RTC)
  8. 5Analog Peripheral Comparison
    1. 5.1 Analog-to-Digital Converter (ADC)
    2. 5.2 Comparator (COMP)
    3. 5.3 Digital-to-Analog Converter (DAC)
    4. 5.4 Operational Amplifier (OPA)
    5. 5.5 Voltage References (VREF)
  9. 6Summary
  10. 7References
  11. 8Revision History

Comparator (COMP)

The RL78 and MSPM0 family of parts both offer integrated comparators as optional peripherals on some devices. In RL78, comparator is denoted as CMP, COMP, or COMPARATOR x, while in MSPM0 as COMPx. In RL78 G1F family, these x are numbered 0-1, and in MSPM0 family these x are numbered 0-2. In RL78 family, G1F series is used in BLDC motor, and have advance feature comparator, while the other series of RL78 mainly have a basic feature comparator. The comparator modules can take inputs from various internal and external sources, and can be used to trigger changes in power mode or control PWM signals. A summary of how the MSPM0 and RL78 comparator modules compare feature-by-feature is included in Table 5-3.

MSPM0H series and MSPM0C1103, MSPM0C1104 device do not support COMP.

Table 5-3 COMP Feature Set Comparison
Feature RL78 MSPM0G MSPM0L MSPM0C
Available comparators Up to 2 Up to 3 Up to 1 Up to 1
Output routing External Multiplexed I/O pins Multiplexed I/O pins Multiplexed I/O pins
Event linker controller Interrupt or event interface Interrupt or event interface Interrupt or event interface
Positive input External 4 analog pins input Multiplexed I/O pins Multiplexed I/O pins Multiplexed I/O pins
DAC12 output (1) DAC8 output DAC8 output
DAC8 output
PGA output
Comparator 0
Internal VREF: 1.4 V and 2.5 V / /
OPA1 output (2) OPA1 output (2) OPA1 output (2)
Negative input External analog pin input Multiplexed I/O pins Multiplexed I/O pins Multiplexed I/O pins
Internal temperature sensor Internal temperature sensor Internal temperature sensor
Internal VREF: 1.45 V Internal VREF: 1.4 V and 2.5 V DAC8 output DAC8 output
8 bit DAC
Comparator 1
DAC8 output OPA0 (3) output OPA0 (3) output
OPA0 output (3)
Programmable hysteresis None, 10mV, 20mV, 30mV None, 10mV, 20mV, 30mV None, 10mV, 20mV, 30mV None, 10mV, 20mV, 30mV
Other values from 0V to VREF/VDD using DAC8 Other values from 0V to VDD using DAC8 Other values from 0V to VDD using DAC8
Register lock No Yes, some COMP registers (writes require key) Yes, some COMP registers (writes require key) Yes, some COMP registers (writes require key)
Window comparator configuration Timer window with TAU0 Yes No (single COMP) No (single COMP)
Input short mode No Yes Yes Yes
Operating modes Run High speed, low power High speed, low power High speed, low power
Fast PWM shutdowns Yes Yes (through TIMA fault handler) No No
Output filtering Elimination digital filter (3 cycles) Blanking filter Blanking filter Blanking filter
Adjustable analog filter Adjustable analog filter Adjustable analog filter
Output polarity control Yes Yes Yes Yes
Interrupts Rising edge Rising edge Rising edge Rising edge
Falling edge Falling edge Falling edge Falling edge
Both edges Output ready Output ready Output ready
Exchange inputs mode (4) No Yes Yes Yes
Only on devices with DAC12 peripheral
Only on devices with OPA1 peripheral
Only on devices with OPA0 peripheral
When enable exchange inputs mode, the input signals of comparator positive and negative terminals are exchanged. Additionally, the output signal from the comparator is inverted too.

COMP Code Examples: information about COMP code examples can be found in the MSPM0 SDK examples guide.