MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
PIT Peripheral and Driver Overview

Peripheral features and how this peripheral works

The programmable interval timer module (PIT) contains clock select logic, a up counter, a modulo register, and a control register. The purpose of the PIT is to create a repeated interrupt request at a programmable time interval.

Features

How this peripheral works

  1. Configure PIT features, set period timeout value.
  2. Enable interrupt, Enable timer
  3. PIT will enter interrupt according to configured period repeatedly

Low Power Modes

How this driver is designed to make this peripheral works.

The pit driver provides a structure pit_config_t which contains all the programmable features of PIT. The PIT_Init() function takes the argument of the structure pointer and configures the PIT features accordingly. Besides initialize operation, PIT driver provide several functional groups to do feature re-configuration, interrupt enable/disable and status flag get and clear. Functional groups are simply described as below:

How to use this driver