Quad Timer Driver Application - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

5.20.4

Quad Timer Driver Application

The Quad Timer driver application is designed for Motorola/Freescale EVMs and is intended to
illustrate the usage of this driver by a real example and also to verify the functionality by a
blinking LED.
The timer/counter D2 is programmed to generate a periodic interrupt every 100 ms. The
timer/counter is initialized statically, using ioctl command QT_INIT, which configures the
timer/counter with data from appconfig.h. Inside the timer/counter D2 interrupt service routine
the state of the debugging LED is changed to indicate proper function. Note that it is the user's
responsibility to clear the interrupt flag inside the interrupt service routine.
The Quad Timer driver application can be found at e.g. {DSP56800E_Quick_Start
Source}\..\sample_applications\MC56F8346EVM\qtimer_demo and consists of the application
project qtimer_demo.mcp and the source code for the application main.c.
Example 5-688. Quad Timer driver application - appconfig.h
/*******************************************************************************
*
* Freescale Semiconductor Inc.
* (c) Copyright 2004-2007 Freescale Semiconductor, Inc.
* (c) Copyright 2001-2004 Motorola, Inc.
* ALL RIGHTS RESERVED.
*
********************************************************************************
*
* File Name: appconfig.h
*
* Description: file for static configuration of the application
*
(initial values, interrupt vectors)
*
*****************************************************************************/
#ifndef __APPCONFIG_H
#define __APPCONFIG_H
/*.*************************************************************************
*
* File generated by Graphical Configuration Tool Fri, 09/Feb/2007, 14:05:22
*
****************************************************************************.*/
#define MC56F8346
#define EXTCLK 8000000L
#define APPCFG_DFLTS_OMITTED 1
#define APPCFG_GCT_VERSION 0x0203000fL
/*.
OCCS Configuration
--------------------------------------------
Core frequency: 60 MHz
VCO frequency: 240 MHz
Loss of lock interrupt 0: Disable
Loss of lock interrupt 1: Disable
Loss of reference clock Interrupt: Disable
COP operation: Disable
COP timeout: 8.38861 sec
COP Runs in Stop Mode: Disable
COP Runs in Wait Mode: Disable
COP Write Protect: Disable
.*/
5-924
Targeting 56F8xxx Platform
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents