[go: up one dir, main page]

0% found this document useful (0 votes)
90 views33 pages

Slaae 76 B

This document provides guidance for hardware development with MSPM0 G-series MCUs. It covers power supplies, reset circuitry, clocks, debugger connections, analog and digital peripherals, GPIOs, and board layout. Key topics include power supply requirements, recommended decoupling circuits, internal and external oscillators, analog peripheral considerations like ADC and DAC design, digital peripherals like timers and communication interfaces, GPIO specifications, and layout guides for power, ground planes, and stack-up.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views33 pages

Slaae 76 B

This document provides guidance for hardware development with MSPM0 G-series MCUs. It covers power supplies, reset circuitry, clocks, debugger connections, analog and digital peripherals, GPIOs, and board layout. Key topics include power supply requirements, recommended decoupling circuits, internal and external oscillators, analog peripheral considerations like ADC and DAC design, digital peripherals like timers and communication interfaces, GPIO specifications, and layout guides for power, ground planes, and stack-up.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

[Link].

com Table of Contents

Application Note
MSPM0 G-Series MCUs Hardware Development Guide

ABSTRACT
The MSPM0 G-series microcontroller (MCU) portfolio offers a wide variety of 32-bit MCUs with ultra-low-
power and integrated analog and digital peripherals for sensing, measurement, and control applications. This
application note covers information needed for hardware development with MSPM0 G series MCUs, including
detailed hardware design information for power supplies, reset circuitry, clocks, debugger connections, key
analog peripherals, communication interfaces, GPIOs, and board layout guidance.

Table of Contents
1 MSPM0G Hardware Design Check List.................................................................................................................................3
2 Power Supplies in MSPM0G Devices....................................................................................................................................4
2.1 Digital Power Supply.......................................................................................................................................................... 4
2.2 Analog Power Supply.........................................................................................................................................................5
2.3 Built-in Power Supply and Voltage Reference................................................................................................................... 6
2.4 Recommended Decoupling Circuit for Power Supply........................................................................................................ 6
3 Reset and Power Supply Supervisor.................................................................................................................................... 6
3.1 Digital Power Supply.......................................................................................................................................................... 6
3.2 Power Supply Supervisor...................................................................................................................................................7
4 Clock System.......................................................................................................................................................................... 8
4.1 Internal Oscillators............................................................................................................................................................. 8
4.2 External Oscillators............................................................................................................................................................ 9
4.3 External Clock Output (CLK_OUT)...................................................................................................................................11
4.4 Frequency Clock Counter (FCC)...................................................................................................................................... 11
5 Debugger............................................................................................................................................................................... 12
5.1 Debug port pins and Pinout..............................................................................................................................................12
5.2 Debug Port Connection With Standard JTAG Connector.................................................................................................12
6 Key Analog Peripherals....................................................................................................................................................... 15
6.1 ADC Design Considerations............................................................................................................................................ 15
6.2 OPA Design Considerations.............................................................................................................................................15
6.3 DAC Design Considerations............................................................................................................................................ 16
6.4 COMP Design Considerations......................................................................................................................................... 17
6.5 GPAMP Design Considerations....................................................................................................................................... 19
7 Key Digital Peripherals.........................................................................................................................................................20
7.1 Timer Resources and Design Considerations..................................................................................................................20
7.2 UART and LIN Resources and Design Considerations....................................................................................................21
7.3 MCAN Design Considerations......................................................................................................................................... 23
7.4 I2C and SPI Design Considerations.................................................................................................................................24
8 GPIOs.....................................................................................................................................................................................26
8.1 GPIO Output Switching Speed and Load Capacitance....................................................................................................26
8.2 GPIO Current Sink and Source........................................................................................................................................26
8.3 High-Speed GPIOs (HSIO).............................................................................................................................................. 27
8.4 High-Drive GPIOs (HDIO)................................................................................................................................................ 27
8.5 Open-Drain GPIOs Enable 5-V Communication Without a Level Shifter.........................................................................27
8.6 Communicate With a 1.8-V Device Without a Level Shifter............................................................................................. 27
8.7 Unused Pins Connection..................................................................................................................................................28
9 Layout Guides.......................................................................................................................................................................29
9.1 Power Supply Layout....................................................................................................................................................... 29
9.2 Considerations for Ground Layout................................................................................................................................... 29
9.3 Traces, Vias, and Other PCB Components......................................................................................................................30
9.4 How to Select Board Layers and Recommended Stack-up............................................................................................. 31
10 Bootloader...........................................................................................................................................................................32

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 1
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Table of Contents [Link]

10.1 Bootloader Introduction.................................................................................................................................................. 32


10.2 Bootloader Hardware Design Considerations................................................................................................................ 32
11 References...........................................................................................................................................................................32
12 Revision History................................................................................................................................................................. 32

List of Figures
Figure 1-1. MSPM0G Typical Application Schematic.................................................................................................................. 4
Figure 2-1. VCORE Regulator Circuit............................................................................................................................................ 5
Figure 2-2. VREF Circuit..............................................................................................................................................................6
Figure 2-3. Power Supply Decoupling Circuit.............................................................................................................................. 6
Figure 3-1. NRST Recommended Circuit.................................................................................................................................... 7
Figure 3-2. POR and BOR vs. Supply Voltage (VDD)................................................................................................................. 8
Figure 4-1. MSPM0G Series LFOSC...........................................................................................................................................8
Figure 4-2. MSPM0G Series SYSOSC........................................................................................................................................8
Figure 4-3. MSPM0G SYSPLL Circuit......................................................................................................................................... 9
Figure 4-4. MSPM0G LFXT Circuit............................................................................................................................................10
Figure 4-5. MSPM0G HFXT Circuit........................................................................................................................................... 10
Figure 4-6. MSPM0G External Clock Output............................................................................................................................. 11
Figure 4-7. MSPM0G Frequency Clock Counter Block Diagram............................................................................................... 11
Figure 5-1. Host to Target Device Connection...........................................................................................................................12
Figure 5-2. MSPM0G SWD Internal Pull................................................................................................................................... 12
Figure 5-3. JTAG and MSPM0G Connection.............................................................................................................................13
Figure 5-4. XDS110 Probe High-Level Block Diagram.............................................................................................................. 13
Figure 5-5. XDS110-ET Circuit.................................................................................................................................................. 14
Figure 5-6. Arm Standard 10-Pin Cable.................................................................................................................................... 14
Figure 6-1. ADC Input Network..................................................................................................................................................15
Figure 6-2. Two OPA Differential Amplifier Block Diagram and Equation..................................................................................16
Figure 6-3. Two OPA Noninverting to Noninverting Cascade Amplifier Block Diagram and Equation...................................... 16
Figure 6-4. 8-Bit DAC Block Diagram........................................................................................................................................ 16
Figure 6-5. 8-Bit DAC and OPA Output Block Diagram............................................................................................................. 17
Figure 6-6. 12-bit DAC Output Block Diagram...........................................................................................................................17
Figure 6-7. Comparator Diagram...............................................................................................................................................17
Figure 6-8. Window Comparator Mode......................................................................................................................................18
Figure 6-9. Comparator Short Switch........................................................................................................................................ 18
Figure 6-10. GPAMP Circuit in Amplify Mode............................................................................................................................ 19
Figure 6-11. GPAMP Circuit in Buffer Mode.............................................................................................................................. 19
Figure 7-1. Typical LIN TLIN1021A Transceiver........................................................................................................................22
Figure 7-2. Typical LIN Application (Commander) With MSPM0G............................................................................................ 22
Figure 7-3. Typical LIN Application (Responder) With MSPM0G.............................................................................................. 23
Figure 7-4. MCAN Typical Bus Wiring....................................................................................................................................... 23
Figure 7-5. Typical CAN Bus Application With MSPM0G.......................................................................................................... 24
Figure 7-6. External Connections for Different SPI Configurations............................................................................................24
Figure 7-7. Typical I2C Bus Connection.................................................................................................................................... 25
Figure 8-1. Suggested ODIO Circuit..........................................................................................................................................27
Figure 8-2. Suggested Communication Circuit With 1.8-V Device............................................................................................ 27
Figure 9-1. Suggested Power Supply Layout............................................................................................................................ 29
Figure 9-2. Digital and Analog Grounds and Common Area..................................................................................................... 30
Figure 9-3. Poor and Correct Way of Bending Traces in Right Angle........................................................................................30
Figure 9-4. Poor and Correct Cross Traces for Analog and High-Frequency Signals............................................................... 31
Figure 9-5. Four-Layer PCB Stack-up Example........................................................................................................................ 31
Figure 10-1. BSL Entry Sequence at Configured GPIO Pin...................................................................................................... 32

List of Tables
Table 1-1. MSPM0G Hardware Design Check List......................................................................................................................3
Table 4-1. SYSOSC Accuracy With FCL, by ROSC Tolerance, RSOC TCR, and Ambient Temperature (TA)............................ 9
Table 5-1. MSPM0G Debug Ports............................................................................................................................................. 12
Table 7-1. TIMA Instance Configuration.................................................................................................................................... 20
Table 7-2. TIMG Instance Configuration.................................................................................................................................... 20
Table 7-3. TIMH Instance Configuration.................................................................................................................................... 20
Table 7-4. UART Features......................................................................................................................................................... 21
Table 7-5. MSPM0G UART Specifications.................................................................................................................................21
Table 7-6. MSPM0G I2C Characteristics................................................................................................................................... 25

2 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Trademarks

Table 8-1. MSPM0G GPIO Switching Characteristics............................................................................................................... 26


Table 8-2. MSPM0G GPIO Absolute Maximum Ratings ....................................................................................................... 26
Table 8-3. Connection of Unused Pins...................................................................................................................................... 28

Trademarks
All trademarks are the property of their respective owners.
1 MSPM0G Hardware Design Check List
Table 1-1 describes the main contents that needs to be checked during the MSPM0G hardware design process.
The following sections provide more details.
Table 1-1. MSPM0G Hardware Design Check List
Pin Description Requirements
VDD Power supply positive pin Place 10-µF and 100-nF capacitors between VDD and VSS and
VSS Power supply negative pin keep those part close to VDD and VSS pins.

Connect a 470-nF capacitor to VSS. Do not supply any voltage or


VCORE Core voltage (typical: 1.35V)
apply any external load to the VCORE pin.
Connect an external 47-kΩ pullup resistor with a 10-nF pulldown
NRST Reset pin
capacitor.
• Connect an external 100-kΩ/±0.1%, 25-ppm resistor to VSS to
enable high SYSOSC accuracy if needed.
ROSC External reference resistor pin • Can be left open the application does not have high accuracy
requirement for SYSOSC.

Voltage reference power supply - • When using VREF+ and VREF- to bring in an external voltage
VREF+
external reference input reference for analog peripherals such as the ADC, a decoupling
capacitor must be placed on VREF+ to VREF-/GND with a
Voltage reference ground supply - capacitance based on the external reference source.
VREF-
external reference input • Leaving open is OK if the application does not need external
voltage reference.

SWCLK Serial wire clock from debug probe Internal pulldown to VSS, does not need any external part.
SWDIO Bidirectional (shared) serial wire data Internal pullup to VDD, does not need any external part.
PA0, PA1 Open-drain I/O Pullup resistor required for output high
Keep pulled down to avoid entering BSL mode after reset. (BSL
PA18 Default BSL invoke Pin
invoke pin can be remapped.)
Set corresponding pin functions to GPIO ([Link] = 0x1) and
PAx (exclude PA0, PA1) General-purpose I/O configure unused pins to output low or input with internal pullup or
pulldown resistor.

Note
For any unused pin with a function that is shared with general-purpose I/O, follow the "PAx" unused
pin connection guidelines.

TI recommends connecting a combination of a 10-μF and a 0.1-nF low-ESR ceramic decoupling capacitor to the
VDD and VSS pins Higher-value capacitors can be used but can impact supply rail ramp-up time. Decoupling
capacitors must be placed as close as possible to the pins that they decouple (within a few millimeters).
The NRST reset pin is required to connect an external 47-kΩ pullup resistor with a 10-nF pulldown capacitor.
The SYSOSC frequency correction loop (FCL) circuit utilizes an external 100-kΩ resistor, populated between
the ROSC pin and VSS, to stabilize the SYSOSC frequency by providing a precision reference current for the
SYSOSC. This resistor is not required if the SYSOSC FCL is not enabled.
For devices support external crystals, external bypass capacitors for the crystal oscillator pins are required when
using external crystals.
A 0.47-µF tank capacitor is required for the VCORE pin and need to be placed close to the device with minimum
distance to the device ground.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 3
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Power Supplies in MSPM0G Devices [Link]

For 5-V-tolerant open drain (ODIO), a pullup resistor is required to output high, this is required for I2C and UART
functions if the ODIO are used.
1.62–3.6V
100 k (0.1% 25ppm)
VDD ROSC

10 F 0.1 F
VSS
VREF+

1 F

47 k
LFXIN
NRST

1000 pF LFXOUT

Pull-up resistor HFXIN


required for output high
Open-Drain
IOs
HFXOUT

VCORE

SWDIO
0.47 Programming
tool connection
SWCLK

Figure 1-1. MSPM0G Typical Application Schematic

2 Power Supplies in MSPM0G Devices


Power is supplied to the device through the VDD and VSS connections. The device supports operation with
a supply voltage of 1.62 V to 3.6 V and can start with a 1.62-V supply. The power management unit (PMU)
generates the regulated core supplies for the device and provides supervision of the external supply. It also
contains a bandgap voltage reference used by the PMU and other analog peripherals. VDD is used directly to
provide the IO supply (VDDIO) and the analog supply (VDDA). VDDIO and VDDA are internally connected to
VDD so that additional power supply pins are not required (see the device data sheet for details).
2.1 Digital Power Supply
VCORE Regulator
An internal low-dropout linear voltage regulator generates a 1.35-V supply rail to power the device core. In
general, the core regulator output (VCORE) supplies power to the core logic, which includes the CPU, digital
peripherals and the device memory. The core regulator requires an external capacitor (CVCORE) which is
connected between the device VCORE pin and VSS (ground) (see Figure 2-1). See the device-specific data
sheet for the correct value and tolerance of CVCORE. CVCORE should be placed close to the VCORE pin.
The core regulator is active in all power modes except for SHUTDOWN. In all other power modes (RUN,
SLEEP, STOP, and STANDBY) the drive strength of the regulator is configured automatically to support the max
load current of each mode. This reduces the quiescent current of the regulator when using low power modes,
improving low power performance.

4 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Power Supplies in MSPM0G Devices

Figure 2-1. VCORE Regulator Circuit

2.2 Analog Power Supply

Analog Mux VBOOST


The VBOOST circuit in the PMU generates an internal VBOOST supply that is used by the analog muxes
in COMP, GPAMP, and OPA, if present on a device. The VBOOST circuit enables consistent analog mux
performance across the external supply voltage (VDD) range.

Enabling and Disabling VBOOST


SYSCTL automatically manages the enable request for the VBOOST circuit based on the following parameters:
1. The COMP, OPA, and GPAMP peripheral PWREN settings
2. The MODE setting of any COMP which is enabled (FAST vs. ULP mode).
3. The ANACPUMPCFG control bits in the GENCLKCFG register in SYSCTL.
VBOOST is disabled by default following a SYSRST. It is not necessary for application software to enable the
VBOOST circuit before using the COMP, OPA, or GPAMP. When a COMP, OPA, or the GPAMP is enabled by
application software, SYSCTL also enables the VBOOST circuit to support the analog peripheral.

Note
The VBOOST circuit has a startup time requirement (12 μs typical) to transition from a disabled state
to an enabled state. In the event that the startup time of the COMP, OPA, or GPAMP is less than
the VBOOST startup time, the peripheral startup time is extended to account for the VBOOST startup
time.

Bandgap Reference
The PMU provides a temperature and supply voltage stable bandgap voltage reference, which is used by the
device for internal functions including:
• Driving the brownout reset circuit thresholds.
• Setting the output voltage for the core regulator.
• Driving the on-chip VREF levels for on-chip analog peripherals.
The bandgap reference is enabled in RUN, SLEEP, STOP modes. It operates in a sampled mode in STANDBY
to reduce power consumption. It is disabled in SHUTDOWN mode. SYSCTL manages the bandgap state
automatically so that no user configuration is required.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 5
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Power Supplies in MSPM0G Devices [Link]

2.3 Built-in Power Supply and Voltage Reference


The VREF module for the MSPM0G family is a shared voltage reference module that can be leveraged by a
variety on on-board analog peripherals.
The VREF module features include:
• 1.4-V and 2.5-V user-selectable internal references.
• Support for receiving external reference on the VREF+ and VREF- device pins.
• Sample and hold mode support VREF operation down to STANDBY operating mode.
• Internal reference supports for ADC, COMP, and OPA.
When supplying the MCU with an external reference, TI recommends connecting a decoupling capacitor on the
reference pins with a value based on the voltage source (see Figure 2-2).

Figure 2-2. VREF Circuit

2.4 Recommended Decoupling Circuit for Power Supply


TI recommends connecting a combination of a 10-μF plus a 100-nF low-ESR ceramic decoupling capacitor
to the DVCC pin (see Figure 2-3). Higher-value capacitors can be used but can impact supply rail ramp-up
time. Decoupling capacitors must be placed as close as possible to the pins that they decouple (within a few
millimeters).

Figure 2-3. Power Supply Decoupling Circuit

3 Reset and Power Supply Supervisor


3.1 Digital Power Supply
The device has five reset levels:
• Power-on reset (POR)
• Brownout reset (BOR)
• Boot reset (BOOTRST)
• System reset (SYSRST)
• CPU reset (CPURST)
The details of the relationships between reset levels is described in the Technical Reference Manual (TRM).
After a cold start, the NRST pin is configured in NRST mode. The NRST pin must be high for the device to boot
successfully. There is no internal pullup resistor on NRST. External circuitry (either a pullup resistor to DVCC or
a reset control circuit) must actively pull NRST high for the device to start. A capacitor and an open button are
needed for manual reset (see Figure 3-1). After the device is started, a low pulse on NRST that is <1 second in
duration triggers a BOOTRST. If a low pulse on NRST longer than 1 second triggers a POR.

6 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Reset and Power Supply Supervisor

Figure 3-1. NRST Recommended Circuit

3.2 Power Supply Supervisor

Power-on Reset (POR) Monitor


The power-on reset (POR) monitor supervises the external supply (VDD) and asserts or de-asserts a POR
violation to SYSCTL. During cold power-up, the device is held in a POR state until VDD passes the POR+. Once
VDD has passed POR+, the POR state is released and the bandgap reference and BOR monitor circuit are
started. If VDD drops below the POR- level, then a POR- violation is asserted and the device is again held in a
POR reset state.
The POR monitor does not indicate that VDD has reached a level high enough to support correct operation
of the device. Rather, it is the first step in the boot process and is used to determine if the supply voltage is
sufficient to power up the bandgap reference and BOR circuit, which are then used to determine if the supply
has reached a level sufficient to for the device to run correctly. The POR monitor is active in all power modes
including SHUTDOWN, and cannot be disabled. (The POR triggered waveform is shown in Figure 3-2).

Brownout Reset (BOR) Monitor


The brownout reset (BOR) monitor supervises the external supply (VDD) and asserts or de-asserts a BOR
violation to SYSCTL. The primary responsibility of the BOR circuit is to ensure that the external supply is
maintained high enough to enable correct operation of internal circuits, including the core [Link] BOR
threshold reference is derived from the internal bandgap circuit. The threshold itself is programmable and is
always higher than the POR threshold. During cold start, after VDD passes the POR+ threshold the bandgap
reference and BOR circuit are started. The device is then held in a BOR state until VDD passes the BOR0+
threshold. Once VDD passes BOR0+, the BOR monitor releases the device to continue the boot process, and
the PMU is started. (The BOR triggered waveform is shown in Figure 3-2).

POR and BOR Behavior During Supply Changes


When the supply voltage (VDD) drops below POR-, the entire device state is cleared. Small variations in VDD
which do not pass below the BOR0- threshold do not cause a BOR- violation, and the device will continue to run.
The BOR circuit is configured to generate an interrupt rather than immediately triggering a BOR reset.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 7
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Clock System [Link]

Supply
Voltage
(VDD) No reset
asserted
BOR0+

BOR0-
BOR BOR BOR BOR
released asserted released released

POR+

POR-
POR POR POR
released asserted released

POR BOR RUNNING BOR RUNNING POR BOR RUNNING

Figure 3-2. POR and BOR vs. Supply Voltage (VDD)

4 Clock System
The clock system of MSPM0G series contains the internal oscillators, the clock monitors, and the clock selection
and control logic.
This section describes the clock resources on different MSPM0G family devices and their interaction with
external signals or devices.
4.1 Internal Oscillators

Internal Low-Frequency Oscillator (LFOSC)


LFOSC is an on-chip low power oscillator that is factory trimmed to a frequency of 32.768 kHz. It provides a
low-frequency clock that can be used to help the system achieve low power consumption. The LFOSC can
provide higher accuracy when used over a reduced temperature range. See the device-specific data sheet for
details.

Figure 4-1. MSPM0G Series LFOSC

Internal System Oscillator (SYSOSC)


SYSOSC is an on-chip, accurate, and configurable oscillator with factory-trimmed frequencies of 32 MHz (base
frequency) and 4 MHz (low frequency), as well as support for user-trimmed operation at either 24 MHz or
16 MHz. It provides a high frequency clock that allows the CPU to run at high speed for executing code and
processing performance.

Figure 4-2. MSPM0G Series SYSOSC

8 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Clock System

SYSOSC Frequency Correction Loop


The additional hardware setting for this oscillator is an external resistor, populated between the ROSC pin and
VSS, to increase SYSOSC from a base accuracy of ±2.5% across temperature.
The overall SYSOSC application accuracy is determined by combining the following error sources to determine
the total error:
1. The ROSC reference resistor error (due to tolerance and temperature drift)
2. The SYSOSC circuit error in FCL mode (±0.75% for -40°C to 85°C or ±0.90% for -40°C to 125°C)
Table 4-1 shows how to calculate the SYSOSC application accuracy for two different ROSC resistor specs
across two temperature ranges. For more details, see the device-specific TRM.
Table 4-1. SYSOSC Accuracy With FCL, by ROSC Tolerance, RSOC TCR, and Ambient Temperature (TA)
Ambient Temperature (TA) -40 ≤ TA ≤ 125°C -40 ≤ TA ≤ 85°C
ROSC Resistor Parameters ±0.1% 25 ppm/°C ±0.5% 25 ppm/°C ±0.1% 25 ppm/°C ±0.5% 25 ppm/°C
Nominal ROSC resistance (ROSCnom) 100 kΩ
Maximum ROSC resistance (at 25°C) 100.1 kΩ 100.5 kΩ 100.1 kΩ 100.5 kΩ
Minimum ROSC resistance (at 25°C) 99.9 kΩ 99.5 kΩ 99.9 kΩ 99.5 kΩ
ROSC resistor TCR 25 ppm/°C
ROSC temperature drift -0.16% to 0.25% -0.16% to 0.15%
Maximum ROSC resistance (at high temperature)
100.35 kΩ 100.75 kΩ 100.25 kΩ 100.65 kΩ
(ROSCmax)
Minimum ROSC resistance (at low temperature)
99.74 kΩ 99.34 kΩ 99.74 kΩ 99.34 kΩ
(ROSCmin)
ROSC resistance error (high temperature)
+0.35% +0.75% + 0.25% +0.65%
(ROSCerr+)
ROSC resistance error (low temperature) (ROSCerr-) -0.26% -0.66% -0.26% -0.66%
SYSOSC circuit error (SYSOSCerr) ±0.9% ±0.75%
Total accuracy (TOTerr-, TOTerr+) -1.2% to +1.3% -1.6% to +1.7% -1.0% to +1.0% -1.4% to +1.4%

System Phase-Locked Loop (SYSPLL)


SYSPLL is the system phase-locked loop with programmable frequency and is used to achieve the MSPM0G
series highest speed (80 MHz).

Figure 4-3. MSPM0G SYSPLL Circuit

4.2 External Oscillators


For applications that require even higher clock accuracy across devices and temperature, external oscillators
can be used. LFXT can replace LFOSC, and HFXT can replace SYSOSC.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 9
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Clock System [Link]

Low-Frequency Crystal Oscillator (LFXT)


The LFXT is an ultra-low power crystal oscillator that supports driving a standard 32.768-kHz watch crystal.
To use the LFXT, populate a watch crystal between the LFXIN and LFXOUT pins. Place loading capacitors
on both LFXIN and LFXOUT pins to circuit ground (VSS). Size the crystal load capacitors according to the
specifications of the crystal being used. A variety of crystal types are supported through a programmable drive
strength mechanism. For the layout advice, see Section 9.

Figure 4-4. MSPM0G LFXT Circuit

LFCLK_IN (Digital Clock)


The LFXT circuit can be bypassed and a 32.76-kHz typical frequency digital clock can be brought into the device
to use as the LFCLK source. LFCLK_IN and LFXT are mutually exclusive and must not be enabled at the same
time.
LFCLK_IN is compatible with digital square-wave CMOS clock inputs with a typical duty cycle of 50%. It is
possible to check for a valid clock signal on LFCLK_IN by enabling the LFCLK monitor. By default, the LFCLK
monitor checks LFCLK_IN if the LFXT was not started.

High-Frequency Crystal Oscillator (HFXT)


The high frequency crystal oscillator (HFXT) can be used with standard crystals and resonators in the 4- to
48-MHz range to generate a stable high-speed reference clock for the system.
To use the HFXT, populate a crystal or resonator between the HFXIN and HFXOUT pins. Place loading
capacitors on both pins to circuit ground (VSS). Size the crystal load capacitors according to the specifications of
the crystal being used. A programmable HFXT startup time is provided with 64-µs resolution. For layout advice,
see Section 9.

Figure 4-5. MSPM0G HFXT Circuit

HFCLK_IN (Digital clock)


It is possible to bypass the HFXT circuit and bring in a 4- to 48-MHz typical frequency digital clock into the device
to use as the HFCLK source instead of HFXT. HFCLK_IN and HFXT are mutually exclusive and must not be
enabled at the same time.
HFCLK_IN is compatible with digital square wave CMOS clock inputs with a typical duty cycle of 50%.

10 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Clock System

4.3 External Clock Output (CLK_OUT)


A clock output unit can send digital clocks from the device to external circuits or to the frequency clock counter.
This feature is useful for clocking external circuitry such as an external ADC that does not have its own clock
source. The clock output unit has a flexible set of sources to select, and it includes a programmable divider.

Figure 4-6. MSPM0G External Clock Output

Available clock sources for CLK_OUT:


• SYSPLLCLK1
• HFCLK
• SYSOSC
• ULPCLK
• MFCLK
• LFCLK
The selected clock source can be divided by 1, 2, 4, 8, 16, 32, 64, or 128 before being output to the pin or to the
frequency clock counter.
4.4 Frequency Clock Counter (FCC)
The frequency clock counter (FCC) enables flexible in-system testing and calibration of a variety of oscillators
and clocks on the device. The FCC counts the number of clock periods seen on the selected source clock
within a known fixed trigger period (derived from a secondary reference source) to provide an estimation of the
frequency of the source clock.

Figure 4-7. MSPM0G Frequency Clock Counter Block Diagram

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 11
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Debugger [Link]

Application software can use the FCC to measure the frequency of the following oscillators and clocks:
• MCLK
• SYSOSC
• HFCLK
• CLK_OUT
• SYSPLLCLK0
• SYSPLLCLK1
• SYSPLLCLK2X
• The external FCC input (FCC_IN)

Note
While the external FCC input (FCC_IN function) can be used as either the FCC clock source or the
FCC trigger input, it cannot be used for both functions during the same FCC capture. It must be
configured as either the FCC clock source or the FCC trigger.

5 Debugger
The debug subsystem (DEBUGSS) interfaces the serial wire debug (SWD) two-wire physical interface to
multiple debug functions within the device. MSPM0G devices support debugging of processor execution, the
device state, and the power state (using EnergyTrace technology).

Figure 5-1. Host to Target Device Connection

5.1 Debug port pins and Pinout


The debug port contains SWCLK and SWDIO (see Table 5-1) which have internal pull-down and pull-up resistors
(see Figure 5-2). The MSPM0G MCU family is offered in various packages with different numbers of available
pins. See the data sheet for device-specific details.
Table 5-1. MSPM0G Debug Ports
DEVICE SIGNAL DERECTION SWD FUNCTION
SWCLK Input Serial wire clock from debug probe
SWDIO Input/Output Bi-directional (shared) serial wire data

Figure 5-2. MSPM0G SWD Internal Pull

5.2 Debug Port Connection With Standard JTAG Connector


The Figure 5-3 shows the connection between MSPM0G family MCU SWD debug port with the standard JTAG
connector.

12 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Debugger

Figure 5-3. JTAG and MSPM0G Connection

For MSPM0G device, you can use XDS110 to implement debug/download function. Here list the contents of the
XDS110 and provides instruction on installing the hardware.
Standard XDS110
You can purchase a standard XDS110 on [Link]. Figure 5-4 shows a high-level diagram of the major functional
areas and interfaces of the XDS110 probe.

Figure 5-4. XDS110 Probe High-Level Block Diagram

More standard XDS110 information, refer to the XDS110 Debug Probe User’s Guide.
Lite XDS110 (MSPM0 LaunchPad Development Kit)
The MSPM0 LaunchPad kit include XDS110-ET (Lite) circuit. You can use this debugger to download your
firmware into MSPM0 device. Figure 5-5 shows XDS110-ET circuit.
There are two probes in XDS110-ET:
2.54-mm probe: This port supports the SWD protocol and includes a 5-V or 3.3-V power supply. You can
connect SWDIO SWCLK 3V3 GND to your board and download firmware into an MSPM0G device.
And this probe also supports EnergyTrace technology to measure power consumption precisely in real time.
More information for EnergyTrace technology, visit the EnergyTrace Technology tool page.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 13
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Debugger [Link]

Figure 5-5. XDS110-ET Circuit

10-pin probe: This port supports the JTAG and SWD protocols and includes a 3.3-V power supply. You can use
a 10-pin cable to connect your board and XDS110-ET and download firmware into an MSPM0G device. Figure
5-6 show the 10-pin cable.

Figure 5-6. Arm Standard 10-Pin Cable

Note
• Standard XDS110 support level shift for debug ports, XDS110-ET just support 3.3v probe level.
• We do not recommend using the XDS110 to power other devices except the MSPM0G MCU
because the XDS110 integrates an LDO with limited current drive capability.
• XDS110-ET 2.54-mm probe does not support JTAG protocol.
• XDS110-ET 10-pin probe does not support EnergyTrace technology.

14 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Key Analog Peripherals

6 Key Analog Peripherals


The MSPM0G series MCU includes analog peripheral resources that can provide many analog signal
conditioning functions inside the chip. To maximize the use of the MSPM0G's analog peripheral performance,
some considerations need to be made in the hardware design. This chapter discusses analog design
considerations for many typical analog circuit configurations.
6.1 ADC Design Considerations
MSPM0G devices have a 12-bit, up to 4 Msps, analog-to-digital converter (ADC). The ADC supports fast 12-,
10-, and 8-bit analog-to-digital conversions. The ADC implements a 12-bit SAR core, sample/conversion mode
control, and up to 12 independent conversion-and-control buffers.

Figure 6-1. ADC Input Network

To achieve the desired conversion speed and keep high accuracy, it is necessary to ensure proper sampling
time in hardware design. Sampling (sample-and-hold) time determines how long to sample a signal before digital
conversion. During sample time, an internal switch allows the input capacitor to be charged. The required time
to fully charge the capacitor is dependent on the external analog front-end (AFE) connected to the ADC input
pin. Figure 6-1shows a typical ADC model of an MSPM0G MCU. The Rin and CS/H values can be obtained from
the device-specific data sheet. It is critical to understand the AFE drive capability and calculate the minimum
sampling time required to sample the signal. The resistance of RPar and Rin affects tsample. Equation 1 can be
used to calculate a conservative value of the minimum sample time tsample for an n-bit conversion:

tsample ≥ (Rpar + Rin) × ln(2n+2) × (CS/H + C1 + CPar) (1)

To evaluate continuous high speed (4 Msps) ADC performance, TI recommends adding an external buffer to
ensure sufficient signal source drive capability. As a design reference, see the LP-MSPM0G3507 hardware
design, which includes a recommended external OPA.
6.2 OPA Design Considerations
The MSPM0G OPA is a zero-drift chopper stabilized operational amplifier with a programmable gain stage. The
OPA can used for signal amplification and buffering and can work in general-purpose mode, buffer mode and
PGA mode.
When using the OPA in general-purpose mode, add an external resistor and capacitor to create the amplifier
circuit. But when using buffer mode, it can be configured through software. For PGA mode, software can
configure up to 32x PGA gain.

Note
The PGA gain is only in the negative terminal.

When two or more OPAs are available on a device, the two can be combined to form a differential amplifier. The
output equation for the differential amplifier is given by the Vdiff equation in Figure 6-2.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 15
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Key Analog Peripherals [Link]

V2 +
OPA1

V1 + (V2  V1) × R2
Vdiff =
OPA0 R1

 R1 R2

Figure 6-2. Two OPA Differential Amplifier Block Diagram and Equation

Alternately, when two or more OPAs are available on a device, they can be combined to form a multi-stage
or cascaded amplifier. Using the programmable input muxes, all combinations of inverting and non-inverting
multi-stage amplifiers can be implemented. The output equation for the noninverting to noninverting cascaded
amplifier is given by the Vout equation in Figure 6-3.

Vin +
OPA0 +
R1

R3
OPA1 Vout = Vin x 1+ ( )(1+ R4
R2
R1 R3)

R2
R4

Figure 6-3. Two OPA Noninverting to Noninverting Cascade Amplifier Block Diagram and Equation

6.3 DAC Design Considerations


MSPM0G devices include two DAC modules: 8-bit and 12-bit. The DAC can be used as the reference voltage
and also can work with the OPA to drive the output pad directly. 12-bit DAC modules include a buffer, thus this
can output to pad directly. However, the 8-bit DAC module is normally used as internal reference voltage for OPA
and COMP, therefore to output to an external pin, the OPA must be configured into buffer mode to improve the
drive strength.
Not all devices include these two DAC modules. See the device-specific data sheet for details.
From VDD

From VREF Module


(EXTREF)
Reference Generator

2,3 1
REFSRC

Reference

Comparator
Output 3 8-bit
0 DACCODE0
1,2 8-bit
DAC 1 DACCODE1
8-bit

REFSEL
DAC8 REFMODE 0
Output 1 DACSW

DACCTL

Figure 6-4. 8-Bit DAC Block Diagram

16 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Key Analog Peripherals

Figure 6-5. 8-Bit DAC and OPA Output Block Diagram

Figure 6-6. 12-bit DAC Output Block Diagram

6.4 COMP Design Considerations


The MSPM0G comparator module (COMP) is an analog voltage comparator with general comparator
functionality.
The COMP module includes internal and external inputs that can be used to flexibly to process analog signals.
An internal temperature sensor can be used as a direct input to the COMP.
IPSEL*

3
COMPx_IN0+ 0
COMPx_IN1+ 1 IPEN
COMPx_IN2+ 2

ENABLE
DAC12 output 5
EXCH
OPA1 output 6

COMPy positive terminal 7


FLTEN

+
0 To Event Fabric
SHORT 1 0
- 1
HYST Analog
IMSEL Filter Comparator output
MODE
2
3
FLTDLY
COMNx_IN0- 0 DACCODE0 DACCODE1
REFSEL OUTPOL
COMNx_IN1- 1 IMEN 8 8
From VREF
COMNx_IN2- 2 Reference Generator
including 8bit DAC From VDD

OPA0 output 5 2 Event Fabric


REFSRC DACCTL Interrupt Control
Event IIDX
REFMODE DACSW Interrupts IMASK
RIS
MIS
ISET
ICLR

Figure 6-7. Comparator Diagram

The MSPM0G Comparator module also combine two COMP to implement a window comparator function. As
shown in Figure 6-8, COMP0 and COMP1 can be configured together to create a window comparator. In this
configuration, the input signal is connected to the positive terminal of the comparators connected together, and
the upper and lower threshold voltages are connected to the negative terminal of the comparators.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 17
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Key Analog Peripherals [Link]
IPSEL

3
0
1
IPEN
2

+ WINCOMPEN
5
6 WINCOMPEN COMP0 0
1
COMPy positive terminal 7 Threshold
-

IPSEL

3 WINCOMPEN

0
1 IPEN
2 WINCOMPEN

+
1
5 0
COMP1
6
Threshold
COMPy positive terminal 7 -

Figure 6-8. Window Comparator Mode

The COMP module also includes a SHORT switch that can be used to build a simple sample-and-hold for the
comparator.
As shown in Figure 6-9, the required sampling time is proportional to the size of the sampling capacitor (CS),
the resistance of the input switches in series with the short switch (R), and the resistance of the external source
(RS). The sampling capacitor CS should be greater than 100 pF. The time constant, Tau, to charge the sampling
capacitor CS can be calculated with the below equation.
Tau = (RI + RS)xCS
Depending on the required accuracy, use 3 to 10 Tau as the sampling time. With 3 Tau the sampling capacitor is
charged to approximately 95% of the input signals voltage level, with 5 Tau it is charged to more than 99%, and
with 10 Tau the sampled voltage is sufficient for 12-bit accuracy.
IPSEL

3
0
1 IPEN
Sampling 2
Capacitor, Cs

5
6

SHORT

IMSEL

3
0
1 IMEN
2
Analog Inputs

5
6
7

Figure 6-9. Comparator Short Switch

18 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Key Analog Peripherals

6.5 GPAMP Design Considerations


MSPM0G devices includes GPAMP (General Purpose Amplifier) modules that can used for signal amplification
with some external resistors and capacitors, as seen in Figure 6-10.

Figure 6-10. GPAMP Circuit in Amplify Mode

The GPAMP can also be used as a buffer for the internal ADC. Figure 6-11 shows an example of this
configuration.

Figure 6-11. GPAMP Circuit in Buffer Mode

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 19
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Key Digital Peripherals [Link]

7 Key Digital Peripherals


The MSPM0G series MCU includes a wealth of digital peripheral resources, like Timer, UART, SPI, MCAN, LIN
etc. which provide rich communication capabilities. To maximize the use of the MSPM0G's digital peripherals,
some considerations need to be made in the hardware design. This chapter discusses design considerations for
many typical digital peripheral configurations.
7.1 Timer Resources and Design Considerations
Timers are one of the most basic and important modules in any MCU, and this resource is used in all
applications. It can be used to process tasks regularly, delay, output PWM waveforms to drive o devices, detect
the width and frequency of external pulses, simulate waveform outputs, and more.
The MSPM0G series MCU includes three types of Timer module: TIMA, TIMG and TIMH. The advanced timer
(TIMA), general-purpose timer (TIMG) and high-resolution timer (TIMH) are all timer counting modules that can
be used for a variety of functions, including measuring the input signal edge and period (capture mode) or
generating output waveforms (compare mode output) like PWM signals. However, TIMA adds additional features
such as complementary PWM with dead band insertion, and TIMH has a 24-bit resolution counter. A summary of
the different features and configurations of each timer is shown in the following tables.
Table 7-1. TIMA Instance Configuration
Power Counter Repeat CCP Phase Shadow Pipelined Fault
Instance Prescaler Dead band QEI
Domain Resolution Counter Channels Load Load CC Handler
TIMA0 PD1 16-bit 8-bit 8-bit 4 Yes Yes Yes Yes Yes -
TIMA1 PD1 16-bit 8-bit - 2 Yes Yes Yes Yes Yes -
TIMA2 PD1 16-bit 8-bit - 2 Yes Yes Yes Yes Yes -

Table 7-2. TIMG Instance Configuration


Power Counter Repeat CCP Phase Shadow Pipelined Fault
Instance Prescaler Dead band QEI
Domain Resolution Counter Channels Load Load CC Handler
TIMG0 PD0 16-bit 8-bit - 2 - - - - - -
TIMG1 PD0 16-bit 8-bit - 2 - - - - - -
TIMG2 PD0 16-bit 8-bit - 2 - - - - - -
TIMG3 PD0 16-bit 8-bit - 2 - - - - - -
TIMG4 PD0 16-bit 8-bit - 2 - Yes Yes - - -
TIMG5 PD0 16-bit 8-bit - 2 - Yes Yes - - -
TIMG6 PD1 16-bit 8-bit - 2 - Yes Yes - - -
TIMG7 PD1 16-bit 8-bit - 2 - Yes Yes - - -
TIMG8 PD0 16-bit 8-bit - 2 - - - - - Yes
TIMG9 PD0 16-bit 8-bit - 2 - - - - - Yes
TIMG10 PD1 16-bit 8-bit - 2 - - - - - Yes
TIMG11 PD1 16-bit 8-bit - 2 - - - - - Yes

• First look at the device specific data sheet to check which TIMG instances are available on the device
• Need to check what features are available for each TIMG instance in Technical Reference Manual
Table 7-3. TIMH Instance Configuration
Power Counter Repeat CCP Phase Shadow Pipelined Fault
Instance Prescaler Dead band QEI
Domain Resolution Counter Channels Load Load CC Handler
TIMH0 PD1 24-bit - - 2 - - Yes - - -
TIMH1 PD1 24-bit - - 2 - - Yes - - -

20 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Key Digital Peripherals

7.2 UART and LIN Resources and Design Considerations


The MSPM0G series MCU includes Universal Asynchronous Receiver-Transmitter (UART). As seen in Table
7-4, UART0 supports LIN, DALI, IrDA, ISO7816 Manchester Coding function.
Table 7-4. UART Features
UART Features UART0 (Extend) UART1 (Main)
Active in Stop and Standby Mode Yes Yes
Separate transmit and receive FIFOs Yes Yes
Support hardware flow control Yes Yes
Support 9-bit configuration Yes Yes
Support LIN mode Yes -
Support DALI Yes -
Support IrDA Yes -
Support ISO7816 Smart Card Yes -
Support Manchester coding Yes -

The MSPM0G UART module can support up to 10-MHz baud date in Power Domain1 to support almost all
UART applications.
Table 7-5. MSPM0G UART Specifications
PARAMETERS TEST CONDITIONS MIN TYP MAX UNIT
fUART UART input clock frequency UART in Power Domain1 80 MHz
fUART UART input clock frequency UART in Power Domain0 40 MHz
BITCLK clock frequency(equals
fBITCLK UART in Power Domain1 10 MHz
baud rate in MBaud)
BITCLK clock frequency(equals
fBITCLK 5 MHz
baud rate in MBaud)
AGFSELx = 0 5 5.5 32 ns

Pulse duration of spikes AGFSELx = 1 8 15 55 ns


tSP
suppressed by input filter AGFSELx = 2 18 38 115 ns
AGFSELx = 3 30 74 165 ns

Local Interconnect Network (LIN) is a commonly used low-speed network interface that consists of a commander
node communicating with multiple remote responder nodes. Only a single wire is required for communication
and is commonly included in the vehicle wiring harness.
The TLIN1021A-Q1 transmitter supports data rates up to 20 kbps. The transceiver controls the state of the
LIN bus via the TXD pin and reports the state of the bus on its open-drain RXD output pin. The device has a
current-limited wave-shaping driver to reduce electromagnetic emissions (EME).
The TLIN1021A-Q1 is designed to support 12-V applications with a wide input voltage operating range. The
device supports low-power sleep mode and wake-up from low-power mode over LIN, the WAKE pin, or the EN
pin. The device allows for system-level reductions in battery current consumption by selectively enabling the
various power supplies that can be present on a node through the TLIN1021A-Q1 INH output pin. Figure 7-1
shows a typical interface implemented using the TI TLIN1021A LIN transceiver.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 21
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Key Digital Peripherals [Link]

Figure 7-1. Typical LIN TLIN1021A Transceiver

Only a single wire is required for communication and is commonly included in the vehicle wiring harness. Figure
7-2 and Figure 7-3 show typical interfaces implemented using the TI TLIN1021A LIN transceiver, for more details
refer to the TLIN1021 data sheet.

Figure 7-2. Typical LIN Application (Commander) With MSPM0G

22 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Key Digital Peripherals

Figure 7-3. Typical LIN Application (Responder) With MSPM0G

7.3 MCAN Design Considerations


Controller Area Network (CAN) is a serial communications protocol that efficiently supports distributed real-time
control with a high level of reliability. CAN has high immunity to electrical interference and the ability to detect
various type of errors. In CAN, many short messages are broadcast to the entire network, which provides data
consistency in every node of the system.
The MCAN module supports both classic CAN and CAN FD (CAN with flexible data-rate) protocols. The CAN FD
feature allows higher throughput and increased payload per data frame. Classic CAN and CAN FD devices may
coexist on the same network without any conflict provided that partial network transceivers, which can detect
and ignore CAN FD without generating bus errors, are used by the classic CAN devices. The MCAN module is
compliant to ISO 11898-1:2015.
Some MSPM0G devices include MCAN and LIN modules. To connect to CAN and LIN buses normally, the
device needs an external MCAN transceiver or LIN transceiver as shown in Figure 7-4.
120 Ω
Device

MCAN CAN Node 1

CAN Transceiver .
.
.
.
MCAN_TX D CANH .
.
.
.
.
MCAN_RX R CANL .

CAN Node N

120 Ω mcan-002

Figure 7-4. MCAN Typical Bus Wiring

TCAN1042GV is a CAN transceiver and meets the ISO11898-2 (2016) High Speed CAN (Controller Area
Network) physical layer standard. It can be used in CAN FD networks up to 5 Mbps (megabits per second)
with the secondary power supply input for I/O level shifting the input pin thresholds and RXD output level. This
device has a low-power standby mode with remote wake request feature. Additionally, this device includes many
protection features to enhance device and network robustness. Figure 7-5 includes a reference design circuit.
For more details, refer to the TCAN1042 data sheet.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 23
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Key Digital Peripherals [Link]

Figure 7-5. Typical CAN Bus Application With MSPM0G

7.4 I2C and SPI Design Considerations


SPI and I2C protocols are widely used in communication between devices or boards, such as data exchange
between an MCU and a sensor. The MSPM0G series MCU includes up to 32-MHz high-speed SPI, and
support 3-wire, 4-wire, chip select, and command mode. Follow Figure 7-6 to design a system based on your
requirements.
Some SPI peripheral devices need PICO (Peripherals Input Controller Output) keep high logic. Add a pullup
resistor to the PICO pin if your external device requires it.
3 Wire Connecon 4 Wire Connec on

Controller Peripheral Controller Peripheral


SCLK SCLK SCLK SCLK
POCI POCI POCI POCI

PICO PICO PICO PICO


CS0 CS

4 Wire Connecon with CD 4 Wire Connecon with 4 Peripherals

Controller Peripheral
Controller Peripheral
SCLK SCLK SCLK SCLK
POCI POCI POCI POCI
PICO PICO PICO PICO
CS0 CS CS0 CS
CS3/CD CD CS1
CS2
CS3 Peripheral
SCLK
POCI
PICO
CS

Peripheral
SCLK
POCI
PICO
CS

Peripheral
SCLK
POCI
PICO
CS

Figure 7-6. External Connections for Different SPI Configurations

For I2C bus, the MSPM0G device supports Standard, Fast and Fast plus mode, as shown in the Table 7-6.

24 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Key Digital Peripherals

External pullup resistors are required when using I2C bus. The value of these resistors depends on the I2C
speed - TI recommends 2.2k to support Fast mode+. For systems concerned with power consumption, large
resistor values can be used. ODIO (see GPIOs) can be used to implement communication with a 5-V device.
Table 7-6. MSPM0G I2C Characteristics
Standard mode Fast mode Fast mode plus
PARAMETERS TEST CONDITIONS UNIT
MIN MAX MIN MAX MIN MAX
fI2C I2C input clock frequency I2C in Power Domain0 40 40 40 MHz
fSCL SCL clock frequency 100K 400K 1M MHz
tHD,STA Hold time (repeated) START 4 0.6 0.26 us
tLOW LOW period of the SCL clock 4.7 1.3 0.5 us
tHIGH High period of the SCL clock 4 0.6 0.26 us
Setup time for a repeated
tSU,STA 4.7 0.6 0.26 us
START
tHD,DAT Data hold time 0 0 0 us
tSU,DAT Data setup time 250 100 50 us
tSU,STO Setup time for STOP 4 0.6 0.26 us
Bus free time between a STOP
tBUF 4.7 1.3 0.5 us
and START condition
tVD;DAT Data valid time 3.46 0.9 0.45 us
tVD;ACK Data valid acknowledge time 3.46 0.9 0.45 us

VDD VDD VDD


MSPM0
I2CSCL I2CSDA
R R
Serial Clock (SCL)
Serial Data (SDA)

I2C I2C
Device A Device B

Figure 7-7. Typical I2C Bus Connection

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 25
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
GPIOs [Link]

8 GPIOs
MSPM0G series MCUs include standard-drive I/O (SDIO), high-drive I/O (HDIO), high-speed I/O (HSIO),
and 5-V-tolerant open-drain I/O (ODIO). Users can flexibly choose the appropriate I/O type based on actual
requirements. The following characteristics need to be considered in hardware design.
8.1 GPIO Output Switching Speed and Load Capacitance
When using the GPIO as I/O, design considerations must be made to ensure correct operation. As load
capacitance becomes larger, the rise/fall time of the I/O pin increases. This capacitance includes pin parasitic
capacitance (Ci = 5pF (Typical)) and the effects of the board traces. I/O characteristics are available in the
device’s data sheet. Table 8-1 list the I/O output frequency characteristics of the MSPM0G device.
Table 8-1. MSPM0G GPIO Switching Characteristics
PARAMETER TEST CONDITIONS MIN TYP MAX UNIT
VDD ≥ 1.71 V, CL = 20 pF 16
SDIO
VDD ≥ 2.7 V, CL = 20 pF 32
VDD ≥ 1.71 V, DRV = 0, CL = 20 pF 16
fmax Port output frequency VDD ≥ 1.71 V, DRV = 1, CL = 20 pF 24 MHz
HSIO
VDD ≥ 2.7 V, DRV = 0, CL = 20 pF 32
VDD ≥ 2.7 V, DRV = 1, CL = 20 pF 40
ODIO VDD ≥ 1.71 V, FM+, CL = 20 pF to 100 pF 1
All output ports
tr,tf Output rise or fall time VDD ≥ 1.71 V 0.3*fmax s
except ODIO
tf Output fall time ODIO VDD ≥ 1.71 V, FM+, CL = 20 pF to 100 pF 20*VDD/5.5 120 ns

Note
• The output voltage reaches at least 10% and 90% Vcc at the specified toggle frequency.
• The output rise time of open-drain I/Os is determined by pullup resistance and load capacitance.

8.2 GPIO Current Sink and Source


Table 8-2. MSPM0G GPIO Absolute Maximum Ratings
MIN NOM MAX UNIT
VDD Supply voltage 1.62 3.6 V
VCORE Voltage on VCORE pin 1.35 V
CVDD Capacitor placed between VDD and VSS 10 uF
CVCORE Capacitor placed between VCORE and VSS 470 nF
Ambient temperature, T version –40 105
TA °C
Ambient temperature, S version –40 125
TA Ambient temperature, Q version -40 125 °C
TJ Max junction temperature, T version 125 °C
TJ Max junction temperature, S and Q versions 130 °C
MCLK, CPUCLK, ULPCLK frequency with 2 flash
80
wait state
MCLK, CPUCLK, ULPCLK frequency with 1 flash
fMCLK(PD1 bus clock) 48 MHz
wait state
MCLK, CPUCLK, ULPCLK frequency with 0 flash
24
wait states
fULPCLK(PD0 bus clock) ULPCLK frequency 40 MHz

26 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] GPIOs

Note
• The total current of I/O must be less than the maximum value of IVDD.
• HDIO, HSIO and ODIO are patched in a fixed pin, see to the device data sheet.

SDIO and HSIO are able to sink or source a maximum current of 6 mA (typical), which is sufficient to drive
a typical LED. For larger current loading, use HDIO (maximum current of 20 mA (typical)). However, the total
combined current must be less than IVDD (80 mA typical).
8.3 High-Speed GPIOs (HSIO)
HSIO can support up to 40MHz frequency, and this speed is related to bus clock, supply voltage, and load
capacitance. Users can also select the output max frequency via the DRV bit in the DIO register.
8.4 High-Drive GPIOs (HDIO)
HDIO are able to output 20mA current to drive a load, and the max source current is related to supply voltage.
8.5 Open-Drain GPIOs Enable 5-V Communication Without a Level Shifter
ODIO are tolerant to 5-V input. Because the ODIO are open drain, an external pullup resistor is required for the
pin to be able to output high. This I/O can used for UART or I2C interfaces with different voltage levels. To limit
the current, place a series resistor between the pin and the pullup resistor, and the RSERIES should be no less
than 250 Ω. As shown in Figure 8-1, TI recommends 270 Ω. The value of the pullup resistor depends on the
output frequency (see Section 7.4).

Figure 8-1. Suggested ODIO Circuit

8.6 Communicate With a 1.8-V Device Without a Level Shifter


The MSPM0G series devices use a 3.3-V logic level (excluding ODIO). If you need to communicate with 1.8-V
devices and do not use external level shifter devices, Figure 8-2 shows a suggested circuit for interfacing with a
1.8-V device.

Figure 8-2. Suggested Communication Circuit With 1.8-V Device

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 27
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
GPIOs [Link]

Two MOSFET are used in this circuit - check the VGS to ensure this MOSFET can fully turn on with a low
RDS(on): for 1.8-V device, use less than 1.8-V VGS MOSFET. However, too low VGS MOSFET, can cause the
MOSFET to turn on at a very small voltage (MCU logic judges it as 0), resulting in communication logic error.

U1 output and U2 input


1. U1 output “1.8v high”, Q1 VGS around 0, thus Q1 turn off, U2 reads “3.3v high” with R4.
2. U1 output “low”, Q1 VGS around 1.8v, thus Q1 turn on, U2 reads “low”.

U1 input and U2 output


1. U2 output “3.3 V high”, U1 keep 1.8 V with R1, and Q1 turn off, thus U1 reads “1.8 V high”.
2. U2 output “low”, U1 keep 1.8 V with R1 firstly, but the diode inside MOSFET will pull down U1 to 0.7 V (diode
voltage drops), and then cause VGS to be greater than the turn-on voltage, Q1 turns on, and U1 reads "low".
8.7 Unused Pins Connection
All microcontrollers are designed for a variety of applications and often a particular application does not use
100% of the MCU resources. To increase EMC performance, unused clocks, counters or I/Os, should not be left
free or floating; for example, I/Os should be set to 0 or 1 (pullup or pulldown enabled on the unused I/O pins) and
unused features should be disabled.
Table 8-3. Connection of Unused Pins
Pin Potential Comment
PAx Open Set corresponding pin functions to GPIO ([Link] = 0x1) and configure unused
pins to output low or input with internal pullup/pulldown resistor.
OPAx_IN0- Open This pin is high-impedance
NRST VDD NRST is an active-low reset signal; it must be pulled high to VCC or the device cannot
start.

Note
• To reduce leakage, configure the I/O as an analog input or to push-pull and to set it to 0.
• BSL invoke pin must be pulled down to avoid entering BSL mode after reset.

28 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Layout Guides

9 Layout Guides

9.1 Power Supply Layout


Figure 9-1 shows the typical parts placement and routing for the power supply layout; you must modify this
appropriately for your MSPM0G part. You can optionally connect a filter inductor in series with the VCC and
MCU VDD pins. This inductor is used to filter the switching noise frequency of DCDC. For the value, please refer
to the data sheet of DCDC vendor. C1/C2/C3 values and layout in the MSPM0G device data sheets.

Note
• Keep the smallest capacitance, closest to the MCU VDD pin (C1 < C2 < C3).
• Make all the traces direct without any vias.

Figure 9-1. Suggested Power Supply Layout

9.2 Considerations for Ground Layout


System ground is the most critical area and foundation related to noise and EMI problems on the board. The
most practical way to minimize these problems is to have a separate ground plane.
What is Ground Noise?
Each signal originating from a circuit (say Driver) has a return current flow to its source via ground path. As
the frequency increases, or even for simple but high-current switching like relays, there is a voltage drop due
to line impedance generating interference in the grounding scheme. The return path is always through the least
resistance. For DC signals, that will be the lowest resistive path and for high frequency signals it will be the
lowest impedance path. This explains how a ground plane simplifies the issue and is the key to ensuring signal
integrity.
It is not recommended that the digital return signals propagate inside the analog return (ground) area; therefore,
the designer must split the ground plane to keep all the digital signal return loops within its ground area. This
splitting should be done carefully. Many designs use a single (common) voltage regulator to generate a digital
and analog supply of the same voltage level (for example, 3.3 V). You need to isolate the analog rail and digital
supply rails and their respective grounds from each other. Be careful while isolating ground, as both grounds
have to be shorted somewhere. Figure 9-2 shows how possible return paths for digital signals are not allowed
to form a loop passing through the analog ground. On each design, decide the common point considering the
component placements and so forth. Do not add any inductors (ferrite bead) or resistors (not even zero Ω) in
the series with any ground trace. The impedance increases due to associated inductance at a high frequency,
causing a voltage differential. Do not route a signal referenced to digital ground over analog ground or the other
direction.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 29
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Layout Guides [Link]

Figure 9-2. Digital and Analog Grounds and Common Area

9.3 Traces, Vias, and Other PCB Components


A right angle in a trace can cause more radiation. The capacitance increases in the region of the corner and
the characteristic impedance changes. This impedance change causes reflections. Avoid right-angle bends in a
trace and try to route them with at least two 45° corners. To minimize any impedance change, the best routing
would be a round bend, as shown in Figure 9-3.

Figure 9-3. Poor and Correct Way of Bending Traces in Right Angle

To minimize crosstalk, not only between two signals on one layer but also between adjacent layers, route them
90° to each other. More complex boards need to use vias while routing; however, care must be taken when
using vias as they add additional inductance and capacitance, and reflections occur due to the change in the
characteristic impedance. Vias also increase the trace length. When using differential signals, use vias in both
traces or compensate the delay in the other trace as well.
For signal traces, pay more attention to the impact of high-frequency pulse signals, especially on relatively
small analog signals (like sensor signals). Too many crossovers will couple the electromagnetic noise of the
high-frequency signal to the analog signal, which will result in a low signal-to-noise ratio of the signal and
affect the signal quality. Therefore, it is necessary to avoid crossing when designing. But if there is indeed an
unavoidable intersection, it is recommended to intersect vertically to minimize the interference of electromagnetic
noise. Figure 9-4 shows how to reduce this noise.

30 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
[Link] Layout Guides

Figure 9-4. Poor and Correct Cross Traces for Analog and High-Frequency Signals

9.4 How to Select Board Layers and Recommended Stack-up


To reduce the reflections on high-speed signals, match the impedance between the source, sink and
transmission lines. The impedance of a signal trace depends on its geometry and its position with respect
to any reference planes.
The trace width and spacing between differential pairs for a specific impedance requirement is dependent on the
chosen PCB stack-up. As there are limitations in the minimum trace width and spacing which depend on the type
of PCB technology and cost requirements, a PCB stack-up needs to be chosen which allows all the required
impedances to be realized.
The minimum configuration that can be used is 2 stack-up. A 4- or 6-layer boards are required for very dense
PCBs that have multiple high-speed signals.
The following stack-ups Figure 9-5 are intended as 4-layer examples that can be used as a starting point for
stack-up evaluation and selection. These stack-up configurations use a GND plane adjacent to the power plane
to increase the capacitance and reduce the gap between GND and power plane. High-speed signals on the top
layer have a solid GND reference plane that helps to reduce EMC emissions. Increasing the number of layers
and having a GND reference for each PCB signal layer further improves the radiated EMC performance.

Figure 9-5. Four-Layer PCB Stack-up Example

If the system is not very complicated, there is no high-speed signal or some sensitive analog signal, then the 2
stack-up structure is sufficient.

SLAAE76B – MARCH 2023 – REVISED JUNE 2023 MSPM0 G-Series MCUs Hardware Development Guide 31
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Bootloader [Link]

10 Bootloader

10.1 Bootloader Introduction


A bootloader is a firmware IP (software shipped pre-programmed with the device) that can be used to program
the SoC memories (flash and SRAM) using serial interfaces like UART or I2C. The bootloader is usually
invoked after the bootcode has completed when the device is about to start the customer application. To support
production programming use cases some bootloaders also offer more interfaces like SPI or CAN. A bootloader
can also be used for in-field updates.
10.2 Bootloader Hardware Design Considerations
10.2.1 Physical Communication interfaces
The MSPM0G bootloader (BSL) is implemented on UART and I2C serial interfaces. In MSPM0G devices, the
BSL can automatically select the interface used to communicate with the device. The BSL communication pins
have been pre-defined in the ROM based bootloader. The specific instance of the peripheral interfaces that is
used depends on the selected device and can be found in the device-specific data sheet. Refer to the data sheet
to find which pin has been assigned for BSL communication function before the hardware design.
Note: BSL invoke pin must be pulled down to avoid entering BSL mode after reset.
10.2.2 Hardware Invocation
The bootloader supports hardware invocation after a BOOTRST through the use of a GPIO. The BSL
configuration in the NONMAIN flash memory contains the pad, pin, and polarity definition for the GPIO
invocation. Devices come configured from TI for a specific GPIO and polarity, but software can change this
default by modifying the GPIO pin configuration in the BSL configuration in NONMAIN flash memory. See the
device specific data sheet to determine the default BSL invoke GPIO. Figure 10-1 shows an example for the
GPIO pin PA18 with high level to trigger bootloader.

Figure 10-1. BSL Entry Sequence at Configured GPIO Pin

11 References
1. MSPM0G350x Mixed-Signal Microcontrollers data sheet
2. MSPM0 G-Series 80-MHz Microcontrollers Technical Reference Manual
3. MSPM0 L-Series MCUs Hardware Development Guide
4. TLIN1021A-Q1 Fault-Protected LIN Transceiver with Inhibit and Wake data sheet (Rev. B)
5. TCAN1042-Q1Automotive Fault Protected CAN Transceiver with CAN FD data sheet (Rev. D)

12 Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.

Changes from Revision A (March 2023) to Revision B (June 2023) Page


• Updated the numbering format for tables, figures and cross-references throughout the document.................. 3
• Updated Section 1.............................................................................................................................................. 3

32 MSPM0 G-Series MCUs Hardware Development Guide SLAAE76B – MARCH 2023 – REVISED JUNE 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on [Link] or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE

Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated

You might also like