This document introduces C language programming on the ADSP-21xx series DSP, focusing on the programming method of the timer.
This Engineer-To-Engineer's Note (EE-33) provides guidance on programming the programmable timer found in the ADSP-21xx series of Digital Signal Processors. The document details how to use standard C header files provided by Analog Devices, specifically `misc.h`, which defines functions like `timer_set`, `timer_on`, and `timer_off` for configuring, starting, and stopping the timer.
The standard C header file `misc.h` defines the prototypes for `timer_set`, `timer_on`, and `timer_off`.
An interrupt call within C incurs an overhead of approximately 50 cycles on entry and 50 cycles on return.