Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Pulse/Frequency Generation Function Library (pulse.c)
[Drivers (for AVR peripherals)]

        #include "timer.h"
        #include "pulse.h"
Overview
This library is designed to facilitate the output of square wave pulses at a frequency determined by the user. The user may specify a continuous stream of pulses, or a certain fixed number. Common uses include stepper motor speed control, tone generation, communications, etc. The library uses the AVR processor built-in timers and pulse output is on the timer Output Compare (OC) pins. This library requires the timer function library to work.
The allowable range of frequencies which can be generated is governed by the tic rate of the timer (therefore the CPU clock rate and the timer prescaler), and the computing speed of the processor itself. See the SetFreq commands for more details.

In order for the pulse library to work, pulseInit() will attach the pulse service routines to the timer interrupts using the timerAttach function. You must not detach the service routines during pulse library operation.


Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by  doxygen 1.4.2