Skip to main content
Application NoteNxp

ADC Driver for NXP MC9S08GW64 Microcontrollers

Application note for the 16-bit ADC driver on MC9S08GW64 microcontrollers, covering initialization, calibration, and hardware features like triggers and averaging.

View application note

Overview

This document describes a C-based software driver for the dual 16-bit successive approximation analog-to-digital converters (ADC0 and ADC1) integrated into the NXP MC9S08GW64 microcontroller series. It details hardware configuration options including clock gating, signal descriptions for differential and single-ended channels, and multiple voltage reference sources such as external, alternate, and internal bandgap. The driver supports key hardware features including asynchronous triggers from the Programmable Delay Block (PDB), hardware averaging for up to 32 samples, and self-calibration routines required for conversion accuracy. The guide includes architectural descriptions of the driver's API functions and macros provided in the gw64_adc.h and gw64_adc.c source files.

Use Cases

  • High-precision analog signal measurement
  • Sensor data acquisition using hardware averaging
  • Embedded systems software development for MC9S08GW64 microcontrollers
  • Implementation of differential or single-ended ADC sampling

Topics

NXP
MC9S08GW64
ADC driver
16-bit ADC
successive approximation
microcontroller
application note
AN4169
hardware trigger
self-calibration
hardware averaging

Referenced Parts

MC9S08GW64

NXP

The MC9S08GW64 series includes two separately controllable 16-bit ADCs—ADC0 and ADC1.