pit.h
Default mainpageat91libperipheralspitpit.h
Description Overview  
Description
Purpose
Interface for configuration the Periodic Interval Timer (PIT) peripheral.

Usage
  1. Initialize the PIT with the desired period using PIT_Init(). Alternatively, the Periodic Interval Value (PIV) can be configured manually using PIT_SetPIV().
  2. Start the PIT counting using PIT_Enable().
  3. Enable & disable the PIT interrupt using PIT_EnableIT() and PIT_DisableIT().
  4. Retrieve the current status of the PIT using PIT_GetStatus().
  5. To get the current value of the internal counter and the number of ticks that have occurred, use either PIT_GetPIVR() or PIT_GetPIIR() depending on whether you want the values to be cleared or not.