Project Name: TimerWithCallback Project Type: ADSP-BF533 [ ] ADSP-BF537 [X] ADSP-BF561 [ ] Hardware Used: EZ-Kit LEDs and Buttons System Services Components Used: DMA Manager [ ] Deferred Callback Manager [ ] Interrupt Manager [X] Timer Module [X] Power Management Module [X] Flag Module [ ] External Bus Interface Unit Module [X] Port Module [ ] Example Overview: This example uses the Timer Service to access three general purpose timers, gptimer0, gptimer1 and gptimer2. This example also uses the callback functionality of the timer service. When each of the configured timers expires a function is called to enable the corresponding LED. The Timer0 is half the frequency of the Timer1, and will toggle the first LED in the bank of six LEDs (LED 1). The Timer1 is half the frequency of the Timer2, and will toggle the second LED in the bank of six LEDs (LED 2). The Timer2 occurs most often, and will toggle the third LED in the bank of six LEDs (LED 3). When the program starts, the Timer Service is enabled and after the timers are configured the LED's will flash at varying intervals, as described. This example is based on one of the interrupt manager examples, IntMgrTimerExample, but instead of manually programming the general purpose timers, the Timer Service in the System Services library is used. File Structure: "./TimerWithCallback.dpj" - Main project file "./TimerWithCallback.c" - Main source file (common) "./ezkitutilities.c" - EZ-Kit utilities source file for Blackfin processors "./ezkitutilities.h" - EZ-Kit utilities include file for Blackfin processors System Configuration: Jumpers: SW5 (push button enable switch) 1:ON, 2:ON, 3:ON, 4:ON External connections: None Getting Started: 1) Load Project file "TimerWithCallback.dpj" 2) Build Project by selecting "Project->Rebuild Project". 3) Select "Debug->Run". 4) When finished, select "Debug->Halt" to stop the program.