Real-TimeClock
所属分类:单片机开发
开发工具:Others
文件大小:5KB
下载次数:12
上传日期:2007-08-17 15:02:38
上 传 者:
rrkk
说明: RTC code on BF527 of ADI
(RTC code on BF527 of ADI)
文件列表:
Real-Time Clock (ASM) (0, 2007-08-07)
Real-Time Clock (ASM)\RTC.dpj (4079, 2007-06-27)
Real-Time Clock (ASM)\RTC_stopwatch_wake.asm (9156, 2007-06-27)
****************************************************************************************************
ADSP-BF537 EZ-KIT Lite RTC Example
Analog Devices, Inc.
DSP Division
Three Technology Way
Norwood, MA 02062
Date Created: 12/14/04
____________________________________________________________________________________________________
This directory contains an example ADSP-BF537 RTC project that does a basic blink routine and
then puts the part in deep sleep mode to be woken up from a RTC Stopwatch Event. Once woken up,
the RTC is reconfigured to toggle the EZ KIT LEDs using RTC second, minute, hour, and day interrupts.
Files contained in this directory:
RTC.dpj VisualDSP++ project file
RTC_stopwatch_wake.asm assembly file for application code
readme.txt this project description file
____________________________________________________________________________________________________
CONTENTS
I. FUNCTIONAL DESCRIPTION
II. IMPLEMENTATION DESCRIPTION
III. OPERATION DESCRIPTION
I. FUNCTIONAL DESCRIPTION
The RTC demo demonstrates the ability of the Real-Time Clock to wake the processor up after being
put into deep sleep mode and the processor's abilities to service real-time interrupts by toggling
LEDs in real time.
II. IMPLEMENTATION DESCRIPTION
The main portion of the algorithm calls:
1. Setup_Interrupt_Vectors - overwrites the default EVTx values setup in startup.asm for EVTs used
2. Configure_Flash - initializes the flash ports to have access to the EZKIT's LEDs
3. Blink_LEDs - flashes the LEDs to show a running algorithm before going to deep sleep
4. GoTo_DeepSleepMode - sets RTC wake-up event at 16 seconds, writes PLL_CTL to go to deep sleep
5. Configure_RTC - after wake-up, resets RTC to toggle LEDs for real-time interrupts
III. OPERATION DESCRIPTION
- Open the project "RTC.dpj" in an ADSP-BF537 EZ-KIT Lite session in the VisualDSP Integrated
Development Environment (IDDE).
- Under the "Project" tab, select "Build Project" (program is then loaded automatically into DSP).
- Select "Run" from the "Debug" tab on the menu bar of VisualDSP.
- Observe LEDs flashing and then getting "stuck" for 16 seconds while processor is in deep sleep.
- After 16 seconds, LED display clears and then:
LED1 toggles every second
LED2 toggles every minute
LED3 toggles every hour
LED4 toggles every day
近期下载者:
相关文件:
收藏者: