Pit Driver - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

5.21

PIT Driver

This section describes the API of MC56F802x/3x and MC56F800x Periodic Interrupt Timer
(PIT) on-chip module. The functionality of the PIT module itself is described in the 56F802x/3x
Peripheral Reference Manual and 56F800x Peripheral Reference Manual.
5.21.1
Introduction
The MC56F802x/3x devices have up to three Periodic Interval Timer modules and MC56F800x
devices have one Periodic Interval Timer module. Each PIT module contains a 16-bit up counter,
a modulo register, and a control register. The modulo and control registers are read/writable. The
counter is read only. The modulo register is loaded with a value to count to and the pre-scaler is
set to determine the counting rate. When enabled, the counter counts up to the modulo value and
sets a flag (and an interrupt request if enabled), then it resets to $0000, and resumes counting.
This section describes the PIT driver software, providing the low level software layer interfacing
hardware with software.
5.21.2
Quick Reference
This section is intended as a source of quick access information, while the details are discussed in
Section 5.21.3.
Module base address
of / for
PIT (PIT_BASE)
PIT_0 (PIT0_BASE)
PIT_1 (PIT1_BASE)
PIT_2 (PIT2_BASE)
5.21.2.1
API Definition
The following header files are needed in order to use the PIT device driver:
Required Header File(s):
#include "qs.h"
#include "pit.h"
The following information may be found in the header file pit.h.
FREESCALE SEMICONDUCTOR
Table 5-779. PIT Module Base Address
MC56F800x
MC56F801x
0xF2E0
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Targeting 56F8xxx Platform
MC56F8023
MC56F802x/3x
N/A
N/A
0xF190
0xF190
N/A
0xF1A0
N/A
0xF1B0
MC56F83xx
N/A
N/A
N/A
N/A
5-931

Advertisement

Table of Contents
loading

Table of Contents