Project Name: LEDButton_Polled 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 [ ] Timer Module [ ] Power Management Module [ ] Flag Module [X] External Bus Interface Unit Module [ ] Port Module [ ] Example Overview: This is a demo program which show how to use the Flag service to access LEDs and push buttons. The LED's except led 6 and led 7 (power) are turned off when you start the program. This example uses the first three switches and the first 2 LEDs. SW13 (first button or PB-1) - toggles LED1 on/off SW12 (second button or PB-2) - toggles LED2 on/off If you press button SW11 (or PB-3) the program terminates This example uses polling to check if a button has been pressed using the flag service. If a button has been pressed the appropriate action is taken to toggle the corresponding LED. File Structure: "./LEDButton_Polled.dpj" - Main project File "./LEDButton_Polled.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 "LEDButton_Polled.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.