S32K1xx ADC Guidelines, Specifications, and Configuration

by: NXP Semiconductors

1. Introduction

NXP S32K1xx automotive microcontroller devices feature a 12-bit successive approximation Analog-to-Digital converter (SAR ADC) for acquiring and digitalizing analog input signals. This application note provides information on basic topics to maximize the benefit from the ADC module, including understanding common terminology, error sources, specifications, best practices for accuracy, and common triggering configuration examples for the S32K1xx family.

2. ADC Concepts, Error Sources, and Specification

This section explains the concepts and terminology used to characterize an ADC, potential error sources, and the specification parameters found in the S32K1xx family datasheet.

2.1. ADC Basic Concepts

2.2. Sources of Error in ADC Measurements

2.3. S32K1xx ADC Specifications

3. Best Practices to Increase Accuracy

4. ADC Triggering Mode Examples

The S32K1xx ADC offers flexible trigger source configurations. The following examples are based on the S32K144 EVB board.

4.1. Software Trigger

The simplest trigger mode, initiated by writing to the ADCH field in the ADCx_SC1A register. A single conversion is triggered with each write. The result is available in the ADCx_RA register.

4.2. PDB Trigger

The PDB (Programmable Delay Block) timer module is the suggested hardware trigger method. It can trigger ADC conversions periodically. The trigger can follow a direct path or a PDB/TRGMUX multiplexed path, depending on the SC1n register used.

4.3. PDB Trigger in Back-to-Back Mode

In this mode, ADC conversion complete flags trigger subsequent PDB channels' pre-trigger and trigger outputs sequentially. This is useful for sampling multiple ADC channels consecutively. The direct and multiplexed paths for PDB triggers still apply.

4.4. TRGMUX Trigger

The TRGMUX (Trigger Multiplexer) module synchronizes ADC conversions with various internal and external trigger signals. It can be used for SC1n registers 0 to 3 and always goes through the trigger latching gasket. The example shows triggering an ADC conversion on the rising edge of an external signal (TRGMUX_IN0).

5. References

Appendix A. Example code: ADC software triggering

Provides C code for ADC software triggering using the S32K144 microcontroller.

Appendix B. Example code: ADC with PDB trigger

Provides C code for ADC triggering using the PDB module on the S32K144 microcontroller.

Appendix C. Example code: ADC with PDB and back-to-back triggers

Provides C code for ADC triggering using PDB in back-to-back mode on the S32K144 microcontroller.

Appendix D. Example code: ADC with TRGMUX trigger

Provides C code for ADC triggering using the TRGMUX module on the S32K144 microcontroller.

Contact Information

Home Page: nxp.com

Web Support: nxp.com/support

Legal Information

Information in this document is provided solely to enable system and software implementers to use NXP products. NXP reserves the right to make changes without further notice to any products herein. NXP disclaims all warranties and liabilities, including consequential or incidental damages. Typical parameters may vary. Customers must validate operating parameters for their specific applications. NXP does not grant any patent licenses. NXP sells products under standard terms and conditions of sale, available at nxp.com/SalesTermsandConditions. Customers are responsible for implementing appropriate design and operating safeguards to minimize risks associated with product vulnerabilities.

Trademarks mentioned belong to NXP B.V. or their respective owners. ARM, Cortex, and other ARM-related marks are trademarks or service marks of ARM Limited or its subsidiaries.

© 2018 NXP B.V.

PDF preview unavailable. Download the PDF instead.

AN12217 Microsoft Word 2016

Related Documents

Preview S32K1 到 S32K3 移植指南
本应用笔记介绍了 S32K1 和 S32K3 系列产品的差异,以及从 S32K1 移植到 S32K3 的一般注意事项。重点介绍了 S32K3x4 芯片(4MB 闪存芯片),并提供了与其他 S32K3 系列成员的比较。
Preview NXP S32K1xx Bootloader: Architecture and Usage Guide
This NXP Semiconductors application note details the architecture, workflow, and usage of the S32K1xx bootloader. It covers UART communication, memory layout, and development guidance for S32K1 MCUs.
Preview NXP S32K1xx Series Cookbook: Software Examples and Startup Code
Explore software examples and essential startup code for NXP's S32K1xx series microcontrollers. This cookbook guides users through microcontroller features using NXP's S32 Design Studio.
Preview NXP JN5189(T)/JN5188(T) User Manual: Arm Cortex-M4 Wireless Microcontrollers
Comprehensive user manual for NXP's JN5189(T) and JN5188(T) ultra-low power wireless microcontrollers featuring Arm Cortex-M4. Details features, architecture, pinouts, power management, and Zigbee/Thread support for IoT applications.
Preview NXP Semiconductors N.V. 2024 Annual Report
Explore the NXP Semiconductors N.V. 2024 Annual Report for comprehensive insights into financial results, business operations, market strategies, governance, and future outlook. Discover NXP's performance across automotive, industrial, mobile, and communication sectors.
Preview TJA1443 High-Speed CAN Transceiver with Sleep Mode | NXP Semiconductors Datasheet
Explore the NXP Semiconductors TJA1443, a high-speed CAN transceiver supporting CAN FD up to 5 Mbit/s. This datasheet details its low-power modes, wake-up features, fail-safe operation, and automotive qualifications for embedded systems.
Preview MPC5565 Microcontroller Reference Manual Addendum
This document provides corrections and updates to the MPC5565 Microcontroller Reference Manual, including errata for revision 1.0. It details changes to tables, register descriptions, and functional behavior for the MPC5565 microcontroller.
Preview NXP KS22/KS20 Microcontroller Technical Data Sheet
Technical datasheet for NXP's KS22/KS20 microcontroller family, featuring ARM Cortex-M4 core at 120 MHz, up to 256KB Flash, USB, FlexCAN, FlexIO, and low-power modes for embedded applications.