Project Name: LEDButton Project Type: ADSP-BF533 [ ] ADSP-BF537 [X] ADSP-BF561 [ ] Hardware Used: EZ-Kit LEDs and Buttons System Services Components Used: DMA Manager [X] Deferred Callback Manager [ ] Interrupt Manager [X] Timer Module [ ] Power Management Module [X] Flag Module [X] External Bus Interface Unit Module [X] Port Module [ ] Example Overview: This is a demo program that shows how to use the EZ-Kit utilities for the LEDs and push buttons. The LED's are turned off when you start the program. The program starts out in "polled mode", (polling the buttons, to see if one is pressed). The first three switches can be tested by pressing the first three buttons. When you press a button, all LED's except one will be turned off, in accordance with the following chart: SW13 (first button) - LED 1 on SW12(second button) - LED 2 on SW11 (third button) - LED 3 on If you press the LAST button, (SW10) then you go into the next phase of the program, which is Interrupt Driven mode. In this mode, callbacks are installed for each button. You can do the same thing you did in polled mode, press the three buttons and see the three LED's go on. If you press the last button (SW10) it takes you, again, to the next phase, in which you can start the LED"s "cycling" and stop them again. In this mode, each time the first button is pressed, the LED corresponding to the first button is toggled. When the second button is pressed, all LED's are cycled until either the first button is pressed again or until the last button is pressed, at which time the program is ended. File Structure: "./LEDButton.dpj" - main project file "./LEDButton.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 Jumpers: SW5 (push button enable switch) 1:ON, 2:ON, 3:ON, 4:ON External connections: None Getting Started: 1) Load Project file "LEDButton.dpj" 2) Build Project by selecting "Project->Rebuild Project" 3) Select "Debug->Run". 4) Press buttons, and observe the behavior described above. 5) When finished, select "Debug->Halt" to stop the program.