Project Name: PowerDemo_537 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 program demonstrates how both the voltage level and the power mode can be modified dynamically using the Power Management Module of the System Services Library. After initialization, the program blinks the LED's. The blink frequency of the LEDs depends on the voltage level and the power mode. The status of the LEDs display the current Power mode and the voltage level of the processor as follows: 2 3 4 ----- 1 1 1 Full on 1 0 1 Active - enabled 0 1 1 Active - disabled 0 0 1 Sleep (returned from sleep) 0 0 0 Deep Sleep 5 6 --- 0 0 0.85V 0 1 0.95V 1 0 1.05V 1 1 1.2V LED 1 is used to display the status of the SDRAM read/write operations. LED 1 is lit when all of the SDRAM has been written to. It is turned off if the read operation from all of SDRAM is successful. This LED doe not blink. The Push buttons are assigned the following functions: PB4 Write to SDRAM - LED 1 is lit on completion. (SW10) PB3 Read from SDRAM - LED 1 is turned off on successful completion. (SW11) PB2 Cycle the Power Modes*. (SW12) PB1 Cylce the Voltage levels. (SW13) * On return from Sleep, the processor is switched to Full-on but the LED display remains at 001 as the next press of PB 2 will be send the processor into deep sleep. Two Interrupt handlers are hooked on to the interrupt chains in the System Services' Interrupt manager as follows PushButtonHandler - IVG 7 RealTimeClockHandler - IVG 13 File Structure: Main project File: ./PowerDemo_537.dpj Source Files: ../../../../ADSP-BF537/Services/PowerManagement/PowerDemo1/PowerDemo.c ../../../../ADSP-BF537/Services/PowerManagement/PowerDemo1/PowerDemoIntHndlers.c ../../../../ADSP-BF537/Services/PowerManagement/PowerDemo1/sdram_test.c ../../../../utilities/ezkitutilities.c Header Files: ../../../../ADSP-BF537/Services/PowerManagement/PowerDemo1/PowerDemo.h ../../../../ADSP-BF537/Services/PowerManagement/PowerDemo1/sdram_test.h System Configuration: Jumpers: SW5 > 1:ON, 2:ON, 3:ON, 4:ON External connections: None Getting Started: 1) Load Project file "PowerDemo_537.dpj" 2) Build Project by selecting "Rebuild Project" 3) Run 4) Start hitting buttons 5) Halt when ready