SLAAEF9 November   2023 MSPM0C1104 , MSPM0G3507 , MSPM0L1306

 

  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)

Step 4. Software Evaluation

Here are some simple steps to port the example into CCS.

  1. Select Project,and then import CCS Projects from the menu.
    GUID-989060AF-E5B5-4ED5-84F4-F888CEF4AD9B-low.png Figure 2-30 import CCS Projects
  2. Choose the program from SDK. Take the MSPM0L1306, for example.

    \mspm0_sdk_1_10_00_05\examples\nortos\LP_MSPM0L1306\driverlib

    GUID-D2C0F8C5-50C9-45C3-9240-EFD7ADAE0044-low.png Figure 2-31 Choose Program From SDK

    If the file cannot be imported, delete the same name project under workspace.

    GUID-71E45DBA-E1E8-4320-AD2A-ACDA5F182F66-low.png Figure 2-32 Remove Duplicated Project
  3. After importation, there is going be a project lying on the left, and a REAME.md will automatically open. It is recommended that you read the README.md file first, which contains the purpose of this example and the hardware configuration.
    GUID-6C0C6197-4CD1-4651-8AB9-2614CCBF9E96-low.png Figure 2-33 Project and README.md
  4. Figure 2-34 shows the most important files in the project.
    GUID-F3B879F8-813D-47F4-8706-7C2624ADB34D-low.png Figure 2-34 CCS Project Overview
  5. Just like in RL78 development, double-click the .scfg file to reach the Smart Configuration interface, double click .syscfg file, you can reach to SysConfig, where you are allowed to configure the required peripherals through a graphical interface. And, it is suggested to use the MCU view of SysConfig to help you fix the pin function first with software engineer, which is similar to MCU/MPU Package in e2studio.
    GUID-6E6C87D3-20B2-4C86-9C32-AA1AEE867047-low.png Figure 2-35 MCU View in Smart Configuration and SysconfigSysConfig
  6. Based on the code and SysConfig example, you are able to polish the project or modify them with device-specific TRM or application note released on Ti.com.
  7. If you want to add third-party libraries, you can follow the steps below. First, you have to add relevant file into your project, as shown if Figure 2-36.
    GUID-828208FB-AA39-4910-8D95-339A6423BBA8-low.png Figure 2-36 Add Relevant File

    Then, other steps need to be done in order to tell compiler that you have add header files.

    GUID-B4041BCB-095B-4458-B157-488A254F041C-low.png Figure 2-37 Include Options Set
  8. As you finish evaluating the software, click “build” icon in the main toolbar, as shown in Figure 2-38. The appearance of “Build Finished” shows your successful compilation.
    GUID-31D42CE6-A533-4647-99FA-DC21B6DC6931-low.png Figure 2-38 Successful Build