Skip to main content
Application NoteNxp

PDB Driver for the MC9S08GW64

Application note describing a C software driver for the Programmable Delay Block (PDB) on the MC9S08GW64 microcontroller to provide controllable ADC triggers.

View application note

Overview

This application note provides a technical overview and software driver implementation for the Programmable Delay Block (PDB) module in the NXP MC9S08GW64 series microcontrollers. The PDB is primarily used to provide precisely controlled delays between a trigger source—such as an external trigger, software trigger, or comparator output—and the sample trigger inputs of one or more ADCs. The document details the software architecture, including pdb.h and pdb.c files, and defines API functions for initialization, setting module delays, configuring channel-specific delays for ADC pre-triggers, and handling software triggers. It also describes error conditions like sequence errors and provides guidance on integrating the driver into embedded applications.

Use Cases

  • ADC timing synchronization
  • Precision data acquisition
  • Smart metering
  • Motor control
  • Power management

Topics

MC9S08GW64
Programmable Delay Block
PDB
ADC Trigger
Software Driver
NXP
Freescale
AN4163
Microcontroller

Referenced Parts

MC9S08GW64

NXP

The MC9S08GW64 series includes a PDB block used to provide a trigger to the two ADC trigger select inputs.

PDB Driver for the MC9S08GW64 | Design Resources