Site Search

NXP Microcontroller MCX Peripheral Guide

We are currently serializing content explaining the peripherals included in the NXP MCX microcontroller.

The NXP MCX has many features, and we've provided an explanation of how to use them, so please take a look.

The evaluation board used for the evaluation is an evaluation kit called the FRDM board.

FRDM-MCXN947 FRDM-MCXA156,FRDM-MCXA266,FRDM-MCXA346  This can be verified using [this method].

 

Reference site:

FRDM Board Room | NXP Semiconductors

FRDM Development Boards for MCUs and MPUs | NXP Semiconductors

1 - Controlling the Flexcomm LPI2C ~Communicating with the Sensirion SHT45 Temperature and Humidity Sensor~

We will introduce how to control I2C, which is often used in microcontroller development, with NXP microcontrollers.

This time, we'll be looking at the Sensirion temperature and humidity sensor, which is available from Macnica.  SHT45  Equipped with  MIKROE-5301
This guide explains how to connect to the FRDM-MCXN947's Mikro Bus and acquire temperature and humidity sensor information.
Sample software for easily controlling I2C is also included, so please feel free to use it with other sensors as well.

2 - Flexcomm LPI2C Transfer Control Method ~Communication with Accelerometer FXLS8974~

[NXP MCX Peripheral Guide 1]  So, we've shown you how to freely configure and control the I2C protocol.

This time, we will introduce how to control LPI2C using the pre-prepared Transfer function.

The Transfer function has a Blocking function that uses polling and a NonBlocking function that uses interrupts.
This makes it easier to write control logic.

NXP's accelerometer  FXLS8974CF  Evaluation board  FRDM-STBI-A8974  Connect it to the Arduino port of the FRDM-MCXN947 and acquire XYZ 3-axis acceleration information. The I2C control software is designed to be usable with other sensors as well, so feel free to customize and use it as you like.

3 - MIPI I3C Transfer Control Method ~Communication with Temperature Sensor P3T1755~

This is the next-generation standard of I2C, a communication standard commonly used between microcontrollers and peripheral devices.  I3C  This is a serial communication standard that combines the best features of "I2C" and "SPI".

The FRDM-MCXN947 has an I3C-compatible temperature sensor.  P3T1755  This section introduces the features of I3C while explaining the structure of the sample software, which includes the necessary components.

This time, we will explain how to use frdmmcxn947_i3c_master_read_sensor_p3t1755_cm33_core0, which comes with the MCUXpresso SDK.

Sample software with IBI functionality added is also attached below, so please refer to it.

4 - Deciphering AN14679! ADC Performance Benchmark Explanation

Evaluating the performance of the built-in ADC is an unavoidable challenge when selecting a microcontroller or designing a system.

The resolution and sampling rate listed in the spec sheet are based on ideal conditions. To achieve the expected accuracy (effective accuracy) in actual application environments, it is necessary to have a deep understanding of the device's characteristics and to configure it appropriately..

In particular, for engineers performing minute measurements with industrial sensors or high-precision motor control, understanding the "true capabilities" of ADCs is essential.

This article is a technical document that thoroughly examines the ADC performance of NXP's latest microcontroller, the MCX A3xx series.  AN14679  Based on this, we will explain design tips that even beginners can use in practice.

5 - USB PD (Power Delivery) achieved with PTN5110 and MCX

In recent years, the standardization of power supply via USB Type-C connectors has been progressing across all electronic devices.
This not only improves convenience, but also has aspects that reduce environmental impact, such as reducing electronic waste (by standardizing chargers).
USB Power Delivery (hereinafter referred to as USB PD) is capable of handling high power up to 240W (when compliant with PD 3.1).
Its applications range from smartphones and PCs to industrial equipment, automotive accessories, and small consumer electronics.

Unlike conventional USB power supply (5V only), implementing USB PD requires an advanced communication protocol.
Designers must consider their product's power requirements (source/sink/DRP), board space limitations, and the potential for future updates when selecting the optimal implementation method.
Among these options, the "TCPC/TCPM configuration," which divides the controller's functions, is an ideal choice for designing highly flexible USB PD products.
This article will explain USB PD implementation, focusing on the PTN5110, a key component of TCPC/TCPM.

6 - FlexIO Control Method ~8080 LCD Interface~

FlexIO, integrated into the MCX, is an extremely flexible I/O module that compensates for the lack of peripheral modules and allows for the creation of necessary communication protocols in software.

FlexIO can emulate a wide range of functions, including:

Serial communication such as UART / SPI / I2C / I2S

- Camera interface, parallel communication such as Motorola 68K and Intel 8080
・PWM generation
Logic function
- State machine function

This article explains the FlexIO functionality included in NXP's latest MCXA3xx series microcontrollers and describes the procedure for actually controlling an 8080 LCD using a sample application.

7 - How to use SmartDMA EZH to reduce the load on Arm cores

This article introduces the design philosophy, main functions, and features of SmartDMA (EZH: Event-driven eXtension Handler).

SmartDMA (hereinafter referred to as EZH) is an NXP unit that efficiently manages repetitive and event-driven tasks, reducing the load on Arm cores. EZH significantly improves system performance in input/output (I/O) processing, data processing, and real-time operations.

This article is based on the following NXP application note AN14650. For more details on EZH, please refer to the application note below.

Reference material:AN14650 SmartDMA Cookbook (PDF version)

Reference material:AN14650: SmartDMA Cookbook (HTML version)

8 - Examples of SmartDMA peripheral applications for LCD panel displays

This article introduces a demo environment utilizing the SmartDMA peripheral, as described in NXP's application note AN14172, and explains the functionality of SmartDMA.

____.pngReference:AN14172: Using SmartDMA for Graphic on MCX N Series MCU

AN14172 targets the following two types of evaluation boards equipped with MCX N Series microcontrollers, but the SmartDMA peripheral is also included in some MCX A Series models in addition to the MCX N Series.

9 - Basics of the MCX A3xx built-in operational amplifier

OPAMPs are used for signal amplification and can be configured in various modes.
An ideal operational amplifier has an infinite input impedance and zero output impedance.
This characteristic allows the OPAMP to be used as a voltage follower, directly connecting its output to the input of an analog-to-digital converter (ADC).
This configuration minimizes the impact of the ADC's input impedance on signal sampling.
OPAMPs provide inverting, non-inverting, and differential amplification functions.

10 - How to use FlexPWM, a powerful tool for motor control

This article discusses NXP's Application Note AN14196.  Using the above as a reference, we will explain the basic usage of FlexPWM installed in MCX N and MCX A, and the functions that are particularly important for motor control.

FlexPWM consists of multiple submodules and supports a variety of PWM methods, including Center aligned PWM, Edge aligned PWM, Asymmetric PWM, and Phase shifted PWM.
This allows a wide range of motor drive methods, from three-phase inverter drive to H-bridge control, to be implemented with a single FlexPWM.

Because it features hardware-based complementary PWM and dead-time insertion functions, it enables highly safe motor operation while preventing short circuits between the upper and lower switches.

Inquiry / Quotation

If you have any questions about this product or would like a quote, please contact us using the form below.

NXP Semiconductors Manufacturer Information Top

NXP Semiconductors Manufacturer Information If you would like to return to the top page, please click below.